package shuttle_http

  1. Overview
  2. Docs
Async library for HTTP/1.1 servers and clients

Install

Dune Dependency

Authors

Maintainers

Sources

shuttle-0.9.2.tbz
sha256=69bf4d3ec9262dc981db5b6073c1d9e581c24fa1f1a49d20798eb3ae953ecdc3
sha512=36e95dcfce349f1acc586afa30c6b74d8212b9a8c0e32a2abcdbe09a87208b9ed2dc2c27aed3d65f4e9031260a3c54af7d0e9ebd7ba3d0b80182f17773dae24f

doc/shuttle_http/Shuttle_http/Response/index.html

Module Shuttle_http.ResponseSource

Sourcetype t

t Represents a HTTP 1.1 response.

Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval create : ?version:Version.t -> ?reason_phrase:string -> ?headers:Headers.t -> ?body:Body.t -> Status.t -> t
Sourceval version : t -> Version.t

version returns the HTTP version number for the response.

Sourceval status : t -> Status.t

status returns the Status code for this response.

Sourceval reason_phrase : t -> string

reason_phrase returns the status reason phrase for the response.

Sourceval headers : t -> Headers.t

headers returns the HTTP headers for this response.

Sourceval body : t -> Body.t

body returns the body payload of this response.

Sourceval with_headers : t -> Headers.t -> t
Sourceval with_body : t -> Body.t -> t
OCaml

Innovation. Community. Security.