Interface Http1ClientProtocolConfig

All Superinterfaces:
NamedService, ProtocolConfig, Prototype.Api
All Known Implementing Classes:

public interface Http1ClientProtocolConfig extends Prototype.Api
Configuration of an HTTP/1.1 client.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      instance - an existing instance used as a base for the builder
      a builder based on an instance
    • create

      static Http1ClientProtocolConfig create(Config config)
      Create a new instance from configuration.
      config - used to configure the new instance
      a new instance configured from configuration
    • create

      static Http1ClientProtocolConfig create()
      Create a new instance with default values.
      a new instance
    • type

      default String type()
      Description copied from interface: NamedService
      Type of this implementation, to distinguish instances of same type, with different Use for example ConfiguredProvider.configKey() to define the type.
      Specified by:
      type in interface NamedService
      type of this service
    • name

      String name()
      Description copied from interface: NamedService
      Name of this implementation, as provided in ConfiguredProvider.create(Config, String).
      Specified by:
      name in interface NamedService
      name of this service
    • defaultKeepAlive

      boolean defaultKeepAlive()
      Whether to use keep alive by default.
      true for keeping connections alive and re-using them for multiple requests (default), false to create a new connection for each request
    • maxHeaderSize

      int maxHeaderSize()
      Configure the maximum allowed header size of the response.
      maximum header size
    • maxStatusLineLength

      int maxStatusLineLength()
      Configure the maximum allowed length of the status line from the response.
      maximum status line length
    • validateRequestHeaders

      boolean validateRequestHeaders()
      Sets whether the request header format is validated or not.

      Defaults to false as user has control on the header creation.

      whether request header validation should be enabled
    • validateResponseHeaders

      boolean validateResponseHeaders()
      Sets whether the response header format is validated or not.

      Defaults to true.

      whether response header validation should be enabled