package sihl-web

  1. Overview
  2. Docs
val log_src : Logs.src
module Logs : Logs.LOG
val get : 'a -> 'b -> Sihl_contract.Http.meth * 'c * 'd
val post : 'a -> 'b -> Sihl_contract.Http.meth * 'c * 'd
val put : 'a -> 'b -> Sihl_contract.Http.meth * 'c * 'd
val delete : 'a -> 'b -> Sihl_contract.Http.meth * 'c * 'd
val any : 'a -> 'b -> Sihl_contract.Http.meth * 'c * 'd
val router : ?scope:string -> ?middlewares:Rock.Middleware.t list -> Sihl_contract.Http.t list -> Sihl_contract.Http.router
val trailing_char : string -> string option
val tail : string -> string
val prefix : string -> ('a * string * 'b) -> 'c * string * 'd
val apply_middleware_stack : Rock.Middleware.t list -> ('a * 'b * Rock.Handler.t) -> 'c * 'd * Rock.Handler.t
val router_to_routes : Sihl_contract.Http.router -> (Sihl_contract.Http.meth * string * Rock.Handler.t) list
val externalize_path : ?prefix:string -> string -> string
val to_opium_builder : (Sihl_contract.Http.meth * string * Rock.Handler.t) -> Opium.App.builder
val routers_to_opium_builders : Sihl_contract.Http.router list -> Opium.App.builder list
type config = {
  1. port : int option;
}
val config : int option -> config
val schema : (string, int option -> config, config) Conformist.t
val registered_routers : Sihl_contract.Http.router list Stdlib.ref
val start_server : unit -> unit Lwt.t
val start_cmd : Sihl_core.Command.t
val start : unit -> unit Lwt.t
val stop : unit -> unit Lwt.t
val register : ?routers:Sihl_contract.Http.router list -> unit -> Sihl_core.Container.Service.t