package trail

  1. Overview
  2. Docs

Module Trail.RequestSource

Sourcetype body_reader = Atacama.Connection.t -> [ `ok of Riot.Bytestring.t | `more of Riot.Bytestring.t | `error of Riot.IO.io_error ]
Sourcetype t = {
  1. body_remaining : int;
  2. buffer : Riot.Bytestring.t;
  3. encoding : Http.Transfer.encoding;
  4. headers : Http.Header.t;
  5. meth : Http.Method.t;
  6. path : string list;
  7. query : (string * string list) list;
  8. uri : Uri.t;
  9. version : Http.Version.t;
}
Sourceval make : ?body:Riot.Bytestring.t -> ?meth:Http.Method.t -> ?version:Http.Version.t -> ?headers:(string * string) list -> string -> t
Sourceval from_http : Http.Request.t -> t
Sourceval pp : Format.formatter -> t -> unit
Sourceval is_keep_alive : t -> bool
Sourceexception Invalid_content_header
Sourceval content_length : t -> int option
Sourceval body_encoding : t -> Http.Transfer.encoding
OCaml

Innovation. Community. Security.