package trail

  1. Overview
  2. Docs
type body_reader = Atacama.Connection.t -> [ `ok of Riot.Bytestring.t | `more of Riot.Bytestring.t | `error of Riot.IO.io_error ]
type 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;
}
val make : ?body:Riot.Bytestring.t -> ?meth:Http.Method.t -> ?version:Http.Version.t -> ?headers:(string * string) list -> string -> t
val from_http : Http.Request.t -> t
val pp : Format.formatter -> t -> unit
val is_keep_alive : t -> bool
exception Invalid_content_header
val content_length : t -> int option
val body_encoding : t -> Http.Transfer.encoding
OCaml

Innovation. Community. Security.