package resto-cohttp-server

  1. Overview
  2. Docs

Parameters

module Log : LOGGING

Signature

module Media_type : module type of struct include Resto_cohttp.Media_type.Make(Encoding) end
module Directory : module type of struct include Resto_directory.Make(Encoding) end
type server

A handle on the server worker.

val launch : ?host:string -> ?cors:Resto_cohttp.Cors.t -> ?agent:string -> ?acl:Resto_acl.Acl.t -> media_types:Media_type.t list -> Conduit_lwt_unix.server -> unit Directory.t -> server Lwt.t

Promise a running RPC server.

val set_acl : server -> Resto_acl.Acl.t -> unit
val shutdown : server -> unit Lwt.t

Kill an RPC server.