package sihl

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Sihl_http.ServiceSource

Sourcemodule Core = Sihl_core
Sourceval start_server : unit -> 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.

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

register routers creates an HTTP server with endpoints and configuration.

OCaml

Innovation. Community. Security.