Interface HttpHeadersFactory

All Known Implementing Classes:
DefaultHttpHeadersFactory, H2HeadersFactory

public interface HttpHeadersFactory
Factory method for creating HttpHeaders.
  • Method Details

    • newHeaders

      HttpHeaders newHeaders()
      Create an HttpHeaders instance.
      Returns:
      an HttpHeaders instance.
    • newTrailers

      HttpHeaders newTrailers()
      Create an HttpHeaders instance designed to hold trailers.
      Returns:
      an HttpHeaders instance.
    • newEmptyTrailers

      default HttpHeaders newEmptyTrailers()
      Create an HttpHeaders instance designed to hold trailers, possibly optimized for being empty.

      Note: this should not return an immutable instance unless it is known that no code will need to mutate the trailers.

      Returns:
      an HttpHeaders instance.
    • validateNames

      default boolean validateNames()
      Determine if header names should be validated during parsing into HttpHeaderss.
      Returns:
      true if header names should be validated during parsing into HttpHeaderss.
    • validateCookies

      boolean validateCookies()
      Determine if cookies should be validated during parsing into HttpSetCookies.
      Returns:
      true if a cookies should be validated during parsing into HttpSetCookies.
    • validateValues

      boolean validateValues()
      Determine if header values should be validated during parsing into HttpHeaderss.
      Returns:
      true if header values should be validated during parsing into HttpHeaderss.