package resto-cohttp-server

  1. Overview
  2. Docs

Module Server.MakeSource

Parameters

module Log : LOGGING

Signature

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

A handle on the server worker.

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

Promise a running RPC server.

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

Kill an RPC server.