Module Http.Response

HTTP responses.

type t

The type for HTTP responses.

val make : ?headers:headers -> ?body:string -> int -> t

make status ~headers ~body is a response with status status, headers headers (defaults to []) and body body (defaults to "").

val of_string : string -> (t, string) Stdlib.result

of_string s is a response from s.

val status : t -> int

status r is the status of r.

val headers : t -> headers

headers r are headers of r

val body : t -> string

body r is body of r.