Interface GrpcStreamResponseWriter

All Known Implementing Classes:
Http3GrpcResponseWriter

public interface GrpcStreamResponseWriter
Transport-neutral seam for writing a server-streaming gRPC response (GrpcStreamResponse).

The default (HTTP/1.1 + HTTP/2) server-streaming path writes Netty HTTP/2 stream frames directly to the channel via GrpcStreamResponseActionHandler. The HTTP/3 path cannot use that handler because a QUIC stream has no HTTP/2 frame codec, so HttpActionHandler delegates to this interface when the active ResponseWriter implements it (the HTTP/3 gRPC response writer does). This keeps the matching/dispatch logic in core transport-agnostic while the actual HTTP/3 frame writing lives in the netty module.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Write the given server-streaming gRPC response: an initial HEADERS frame, one DATA frame per message (honouring per-message delays), then a trailing HEADERS frame carrying grpc-status / grpc-message.
  • Method Details

    • writeGrpcStreamResponse

      void writeGrpcStreamResponse(GrpcStreamResponse grpcStreamResponse, HttpRequest request)
      Write the given server-streaming gRPC response: an initial HEADERS frame, one DATA frame per message (honouring per-message delays), then a trailing HEADERS frame carrying grpc-status / grpc-message.
      Parameters:
      grpcStreamResponse - the matched server-streaming action
      request - the originating request (for logging / descriptor lookup)