package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Core = Sihl_core
val start_server : Core.Ctx.t -> unit Lwt.t

Start a HTTP server.

This Lwt.t resolves immediately and the web server starts in the background. The web server serves the registered routes.

val register : ?routers:Route.router list -> unit -> Core.Container.Service.t

register routers creates an HTTP server with endpoints and configuration.

OCaml

Innovation. Community. Security.