package resto-cohttp-server

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

Parameters

module Encoding : Resto.ENCODING
module Log : LOGGING

Signature

type server

A handle on the server worker.

val launch : ?host:string -> ?cors:Resto_cohttp.Cors.t -> media_types:Resto_cohttp.Media_type.Make(Encoding).t list -> Conduit_lwt_unix.server -> unit Resto_directory.Make(Encoding).t -> server Lwt.t

Promise a running RPC server.

val shutdown : server -> unit Lwt.t

Kill an RPC server.

OCaml

Innovation. Community. Security.