GRPC::Transport::Http2ServerConnection
Inherits GRPC::Transport::ServerTransport < GRPC::Transport::Http2Connection < Reference < Object
Http2ServerConnection handles one accepted TCP connection on the server side. It receives gRPC requests, dispatches to registered services, and sends responses.
Constants
DATA read callback for nghttp2 when sending a response body. Must be a module-level constant (non-closure) proc.
When the body is exhausted the callback also submits the trailing HEADERS frame (grpc-status / grpc-message). Per nghttp2 documentation, nghttp2_submit_trailer is safe to call from the data source read callback.
DATA read callback for server-streaming: sends one message chunk. Sets DATA_FLAG_EOF | DATA_FLAG_NO_END_STREAM when the buffer is exhausted so the stream stays open for subsequent data or trailer submission.