package sihl

  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.meth * string * (Rock.Request.t -> Rock.Response.t Lwt.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 registered_middlewares : Rock.Middleware.t list Stdlib.ref
val started_server : Lwt_io.server option 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 lifecycle : Sihl__.Core_container.lifecycle
val register : ?middlewares:Rock.Middleware.t list -> ?routers:Sihl__.Contract_http.router list -> unit -> Sihl__.Core_container.Service.t
OCaml

Innovation. Community. Security.