Module type Route.S

val method_name : string

Human readable method name.

module Error : sig ... end
val http_request : Request.t -> Http_types.Request.t

http_request req constructs http request for Request.t.

val dispatch : ?timeout:Core.Time_ns.Span.t -> Http_client.t -> Request.t -> (Response.t, Error.t) Core.Result.t Async.Deferred.t

dispatch ?timeout client req constructs http request and dispatches using Http_client.t.

val dispatch_exn : ?here:Stdlib.Lexing.position -> ?timeout:Core.Time_ns.Span.t -> Http_client.t -> Request.t -> Response.t Async.Deferred.t

dispatch_exn ?timeout client req constructs http request and dispatches using Http_client.t.