package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.std/B0_http/Http/Response/index.html

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.