Class H2HeadersFactory

    • Constructor Detail

      • H2HeadersFactory

        public H2HeadersFactory​(boolean validateNames,
                                boolean validateCookies)
        Create an instance of the factory with the default array size hint.
        Parameters:
        validateNames - true to validate header/trailer names.
        validateCookies - true to validate cookie contents when parsing.
      • H2HeadersFactory

        public H2HeadersFactory​(boolean validateNames,
                                boolean validateCookies,
                                int headersArraySizeHint,
                                int trailersArraySizeHint)
        Create an instance of the factory.
        Parameters:
        validateNames - true to validate header/trailer names.
        validateCookies - true to validate cookie contents when parsing.
        headersArraySizeHint - A hint as to how large the hash data structure should be for the headers.
        trailersArraySizeHint - A hint as to how large the hash data structure should be for the trailers.