package opium_kernel

  1. Overview
  2. Docs
type t = {
  1. code : Cohttp.Code.status_code;
  2. headers : Cohttp.Header.t;
  3. body : Cohttp_lwt.Body.t;
  4. env : Opium_kernel__.Hmap0.t;
}
val env : t -> Opium_kernel__.Hmap0.t
val body : t -> Cohttp_lwt.Body.t
val headers : t -> Cohttp.Header.t
module Fields : sig ... end
val sexp_of_t : t -> Sexplib0.Sexp.t
val create : ?env:Opium_kernel__.Hmap0.t -> ?body:Cohttp_lwt.Body.t -> ?headers:Cohttp.Header.t -> ?code:Cohttp.Code.status_code -> unit -> t
val of_string_body : ?env:Opium_kernel__.Hmap0.t -> ?headers:Cohttp.Header.t -> ?code:Cohttp.Code.status_code -> string -> t
val of_stream : ?env:Opium_kernel__.Hmap0.t -> ?headers:Cohttp.Header.t -> ?code:Cohttp.Code.status_code -> string Lwt_stream.t -> t
val of_response_body : (Cohttp.Response.t * Cohttp_lwt.Body.t) -> t
OCaml

Innovation. Community. Security.