package shuttle_http

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

Install

Dune Dependency

Authors

Maintainers

Sources

shuttle_http-0.10.0.tbz
sha256=c89bfa5ca3c099e41e62c231eb6d6de096aef20f462d22c09a64908cd15fd5d2
sha512=6e4bdec3fa61c0526c3943748ce199abfb6b9a02905fdf079391a0ee6c1738fc006c33fa6f04a8ebfa4ce20b7604a729ada6b4d740182982e7623acba7726b2b

doc/shuttle_http/Shuttle_http/Request/index.html

Module Shuttle_http.RequestSource

Sourcetype t

t Represents a HTTP 1.1 request.

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

meth returns the HTTP method of this request.

Sourceval path : t -> string

path returns the path component and query parameters of the request URI

Sourceval version : t -> Version.t

version returns the HTTP version number for the request.

Sourceval headers : t -> Headers.t

headers returns HTTP headers of this request.

Sourceval body : t -> Body.t

body returns the body payload of this request.

Sourceval with_body : t -> Body.t -> t

with_body returns a new request where every value is the same as the input request but the body is replaced with the function input.

Sourceval with_headers : t -> Headers.t -> t

with_headers returns a new request where every value is the same as the input request but headers are replaced with the function input.

OCaml

Innovation. Community. Security.