Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Server.Rpc
Sourceunary
is the type for a unary grpc rpc, one request, one response.
client_streaming
is the type for an rpc where the client streams the requests and the server responds once.
server_streaming
is the type for an rpc where the client sends one request and the server sends multiple responses.
bidirectional_streaming
is the type for an rpc where both the client and server can send multiple messages.
type t =
| Unary of unary
| Client_streaming of client_streaming
| Server_streaming of server_streaming
| Bidirectional_streaming of bidirectional_streaming
t
represents the types of rpcs available in gRPC.
unary ~f reqd
calls f
with the request obtained from reqd
and handles sending the response.
client_streaming ~f reqd
calls f
with a stream to pull requests from and handles sending the response.
server_streaming ~f reqd
calls f
with the request optained from reqd
and handles sending the responses pushed out.
bidirectional_streaming ~f reqd
calls f
with a stream to pull requests from and andles sending the responses pushed out.