package b0

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Http.ResponseSource

HTTP responses.

Sourcetype t

The type for HTTP responses.

Sourceval 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 "").

Sourceval of_string : string -> (t, string) result

of_string s is a response from s.

Sourceval status : t -> int

status r is the status of r.

Sourceval headers : t -> headers

headers r are headers of r

Sourceval body : t -> string

body r is body of r.