package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053

doc/octez-libs.rpc-http-server/Tezos_rpc_http_server/RPC_server/index.html

Module Tezos_rpc_http_server.RPC_serverSource

Typed RPC services: server implementation.

Sourcetype cors = {
  1. allowed_headers : string list;
  2. allowed_origins : string list;
}
include sig ... end
Sourcemodule Media_type : sig ... end
Sourcemodule Directory : sig ... end
Sourcetype server
Sourcetype callback = Cohttp_lwt_unix.Server.conn -> Cohttp.Request.t -> Cohttp_lwt.Body.t -> Cohttp_lwt_unix.Server.response_action Lwt.t
Sourceval init_server : ?cors:Resto_cohttp.Cors.t -> ?agent:string -> ?acl:Resto_acl.Acl.t -> media_types:Media_type.t list -> unit Directory.t -> server
Sourceval resto_callback : server -> callback
Sourceval init_and_launch : ?host:string -> ?cors:Resto_cohttp.Cors.t -> ?agent:string -> ?acl:Resto_acl.Acl.t -> media_types:Media_type.t list -> unit Directory.t -> Conduit_lwt_unix.server -> unit Lwt.t
Sourceval set_acl : server -> Resto_acl.Acl.t -> unit
Sourceval shutdown : server -> unit Lwt.t
Sourceval launch : ?host:string -> server -> ?conn_closed:(Cohttp_lwt_unix.Server.conn -> unit) -> ?callback:callback -> ?max_active_connections:int -> Conduit_lwt_unix.server -> unit Lwt.t

launch ?host server ?conn_closed ?callback ?max_active_connections listening_protocol starts the given resto server initiating the listening loop using the

  • parameter [callback]

    overwrites (if given) the default handler of each resto http query will be treated by.

  • parameter [conn_closed]

    is an optional function that is called when a connection is closed.

  • parameter [max_active_connections]

    limits the number of active connections. When this limit is reached, the server will not process new requests until existing ones are completed. Defaults to 100.

Sourcemodule Acl : sig ... end
OCaml

Innovation. Community. Security.