package sihl

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

Module Service.MakeOpiumSource

Parameters

Signature

include Core.Container.SERVICE
Sourceval lifecycle : Core__.Core_container.Lifecycle.t
Sourceval register_endpoints : (string * Http.Route.t list * Middleware.stack) list -> unit

Register HTTP routes that are served by the web server.

Sourceval 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.

OCaml

Innovation. Community. Security.