opium_kernel

Sinatra like web toolkit based on Lwt + Cohttp
Library opium_kernel
type t = {
code : Cohttp.Code.status_code;
headers : Cohttp.Header.t;
body : Cohttp_lwt.Body.t;
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 -> Ppx_sexp_conv_lib.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