package shuttle_http

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

shuttle-0.9.0.tbz
sha256=fd61626c46dcbd63449746b55e1b0821119e5215c6b32330f9671fbb306812ef
sha512=f06946e9271acd8df613385f7b94facb3d807b031c7eb21fac30886db0f45d8615b6eb71132455008b746513de3590d77890518e0c1a2672f1434cd9c1d97f67

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