opium_kernel
Sinatra like web toolkit based on Lwt + Cohttp
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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
val code : t -> Cohttp.Code.status_code
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