Module Http.Request

HTTP requests.

type t

The type for HTTP requests.

val make : ?headers:headers -> ?body:string -> url:B0_std.Url.t -> method' -> t

make uri m ~headers ~body is a request on url with method m, headers headers (defaults to []) and body body (defaults to "").

val url : t -> B0_std.Url.t

url r is the URL of r.

val method' : t -> method'

meth r is the method of r.

val headers : t -> headers

headers r are the headers of r.

val body : t -> string

body r is the body of r.