package tezos-rpc-http-server

  1. Overview
  2. Docs

Module Tezos_rpc_http_server.RPC_serverSource

Typed RPC services: server implementation.

Sourcetype cors = {
  1. allowed_headers : string list;
  2. allowed_origins : string list;
}
Sourcetype server

A handle on the server worker.

Sourcetype callback = Cohttp_lwt_unix.Server.conn -> Cohttp.Request.t -> Cohttp_lwt.Body.t -> Cohttp_lwt_unix.Server.response_action Lwt.t
Sourceval resto_callback : server -> callback
Sourceval init_server : ?cors:cors -> ?agent:string -> ?acl:Resto_acl.Acl.t -> media_types:Tezos_rpc_http.Media_type.t list -> unit Tezos_rpc.Directory.t -> server

Initializes a RPC server

Sourceval launch : ?host:string -> server -> ?callback:callback -> Conduit_lwt_unix.server -> unit Lwt.t

Promise server.

Sourceval shutdown : server -> unit Lwt.t

Kill an RPC server.

Sourcemodule Acl : sig ... end
OCaml

Innovation. Community. Security.