Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
HTTP connexion handler for preview server
val preview_url : Stog.Url.url_config -> string list -> Stog.Url.t
preview_url http_cfg path
forges the preview URL using the pub part of http_cfg
.
val handler :
Run.state option ref ->
http_url:Stog.Url.url_config ->
ws_url:Stog.Url.url_config ->
string list ->
Cohttp.Request.t ->
(Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t
handler current_state host port base_path req body
handles a HTTP query req
. current_state
is a reference to current stog state. host
, port
and base_path
are used to forge urls to refer to the service.