Class Http3ResponseWriter

java.lang.Object
org.mockserver.responsewriter.ResponseWriter
org.mockserver.netty.http3.Http3ResponseWriter

public class Http3ResponseWriter extends ResponseWriter
A ResponseWriter that serialises the MockServer HttpResponse as HTTP/3 frames and writes them to a QUIC stream channel.

This allows the standard request-processing pipeline (HttpState, HttpActionHandler) to write responses identically regardless of whether the request arrived via HTTP/1.1, HTTP/2, or HTTP/3.

Streaming support: when the response carries a StreamingBody (SSE, chunked proxy forwarding, LLM streaming), the headers are sent immediately and each chunk is forwarded as an HTTP/3 DATA frame. The QUIC stream output is shut down when the stream completes. Backpressure is implemented via StreamingBody.requestMore(): each chunk write completion triggers the next upstream read.