package grpc-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Grpc.Server.S
type t

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

val v : unit -> t

v () creates a new server.

val 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.

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

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

module Rpc : sig ... end
module Service : sig ... end
OCaml

Innovation. Community. Security.