package grpc-async

  1. Overview
  2. Docs

Module Grpc_async.ServerSource

include Grpc.Server.S
Sourcetype t

t represents a server and its associated services and routing information.

Sourceval v : unit -> t

v () creates a new server.

Sourceval add_service : name:string -> service:(H2.Reqd.t -> unit) -> t -> t

add_service ~name ~service t adds service to t and ensures that it is routable via name.

Sourceval handle_request : t -> H2.Reqd.t -> unit

handle_request t reqd routes reqd to the appropriate service in t if available.

Sourcemodule Rpc : sig ... end
Sourcemodule Service : sig ... end
OCaml

Innovation. Community. Security.