Class HttpServerCodecs

java.lang.Object
org.mockserver.netty.unification.HttpServerCodecs

public final class HttpServerCodecs extends Object
The HttpServerCodec of an HTTP/1.1 connection a client opens, directly or through a CONNECT/SOCKS tunnel.
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.netty.handler.codec.http.HttpServerCodec
    httpServerCodec(org.mockserver.configuration.Configuration configuration)
    Without a bound on requests awaiting their response, as on 8.0.0: Netty's default of 128 would close a connection whose client pipelines more requests than that before the first is answered.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • httpServerCodec

      public static io.netty.handler.codec.http.HttpServerCodec httpServerCodec(org.mockserver.configuration.Configuration configuration)
      Without a bound on requests awaiting their response, as on 8.0.0: Netty's default of 128 would close a connection whose client pipelines more requests than that before the first is answered. Add it between the handlers of an HttpServerCodecResponsePairing, which keeps its pairing of requests and responses in step.