Package org.mockserver.netty.unification


package org.mockserver.netty.unification
  • Classes
    Class
    Description
    Outbound handler that adds an Alt-Svc header to responses served over the TCP (HTTP/1.1 and HTTP/2) paths when HTTP/3 is enabled.
    Sizes the buffer each read of an accepted connection is given: as the channel's own allocator does (adaptive, following recent reads down to 64 bytes) until the connection is found to be binary, then BinaryAwareRecvByteBufAllocator.BINARY_READ_SIZE for every read, so that a binary message is not cut by a buffer that has followed small messages down.
    Logs a client's failed TLS handshake, on TCP and on HTTP/3: at WARN for the first failure from a client address on a transport, with a hint about its likely cause, and at DEBUG for each later one, so a client that retries, or a scan, does not fill the log.
    Copies the connection-scoped channel attributes from a parent channel onto a child channel.
    Inspects the incoming Netty HttpRequest (headers only) and, when a matching expectation is configured with respondBeforeBody=true, dispatches the response and closes the connection before HttpObjectAggregator buffers the request body.
    Leaves Netty's x-http2- extension headers (HttpConversionUtil.ExtensionHeaderNames) out of every header block an HttpToHttp2ConnectionHandler sends.
    What MockServer logs when an HTTP/1.1 connection closes, by its client's close or reset or otherwise, while a request's body is still arriving: one INFO entry with the request's method, path, query string and headers where the aggregator still holds them, and no stack trace, as an HTTP/2 stream that ends with its connection is logged by Http2StreamFaults.
    The last handler of a direct HTTP/2 connection's pipeline.
    Emits an HTTP/2 GOAWAY frame on the connection carrying ctx so the client is told to stop opening new streams and drain — the graceful "this connection is going away" signal a server sends before a shutdown / preemption.
    Per-stream child initializer used with Http2MultiplexHandler to build the pipeline for every HTTP/2 stream.
    Limits the header list of an HTTP/2 request to maxHeaderSize, as HTTP/1.1 limits its header section, and logs each request refused for it.
    What MockServer logs when an HTTP/2 stream ends before it should, on a connection made straight to MockServer and on the client leg of a CONNECT or SOCKS tunnel alike, each once and with no stack trace: INFO for a request its client cancelled, or whose connection closed, before it was complete; WARN for an error of the stream's own, which Netty then resets the stream for with the error's code; WARN for a connection Netty closes because it had to be sent too many of those resets. See "HTTP/2 streams cut short" in docs/code/netty-pipeline.md for what bounds the entries of one connection.
     
    Keeps HttpServerCodec pairing each response with the request it answers when an exchange ends without its response passing the codec's encoder.
    The HttpServerCodec of an HTTP/1.1 connection a client opens, directly or through a CONNECT/SOCKS tunnel.
    A Http2StreamFrameToHttpObjectCodec that is lenient on the INBOUND (request) side but strict on the OUTBOUND (response) side.
    Sends a large encoded HTTP/1.1 message to the socket in slices, writing the next slice only while the connection is writable.
     
     
    Translates a StreamAddressedHttpContent into the child-channel equivalent when a streaming response is written on an Http2MultiplexHandler child channel.
    Netty ChannelDuplexHandler that injects raw TCP-layer faults before HTTP decoding, based on the TcpChaosProfile registered in TcpChaosRegistry for the connection's remote host.
    Netty handler that extracts W3C traceparent / tracestate headers from inbound HttpRequest objects and stores the parsed W3CTraceContext as a channel attribute, replacing (or clearing) any context from an earlier request on the same connection.