Class HttpResponseDecoderSpec

java.lang.Object
reactor.netty.http.HttpDecoderSpec<HttpResponseDecoderSpec>
reactor.netty.http.client.HttpResponseDecoderSpec
All Implemented Interfaces:
Supplier<HttpResponseDecoderSpec>

public final class HttpResponseDecoderSpec extends HttpDecoderSpec<HttpResponseDecoderSpec>
Author:
Violeta Georgieva
  • Field Details

    • DEFAULT_FAIL_ON_MISSING_RESPONSE

      public static final boolean DEFAULT_FAIL_ON_MISSING_RESPONSE
      See Also:
    • DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST

      public static final boolean DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
      See Also:
    • DEFAULT_H2C_MAX_CONTENT_LENGTH

      public static final int DEFAULT_H2C_MAX_CONTENT_LENGTH
      The maximum length of the content of the HTTP/2.0 clear-text upgrade request. By default, the client will allow an upgrade request with up to 65536 as the maximum length of the aggregated content.
      See Also:
  • Method Details

    • get

    • failOnMissingResponse

      public HttpResponseDecoderSpec failOnMissingResponse(boolean failOnMissingResponse)
      Configure whether to throw an exception on a channel inactive in case there was a missing response.
      Parameters:
      failOnMissingResponse - true - throw an exception on a channel inactive in case there was a missing response, otherwise false
      Returns:
      this option builder for further configuration
    • parseHttpAfterConnectRequest

      public HttpResponseDecoderSpec parseHttpAfterConnectRequest(boolean parseHttpAfterConnectRequest)
      Configure whether the HTTP decoding will continue even after HTTP CONNECT.
      Parameters:
      parseHttpAfterConnectRequest - true to continue HTTP decoding, otherwise false
      Returns:
      this option builder for further configuration
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class HttpDecoderSpec<HttpResponseDecoderSpec>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class HttpDecoderSpec<HttpResponseDecoderSpec>