Class Http1HeadersParser

java.lang.Object
io.helidon.http.Http1HeadersParser

public final class Http1HeadersParser extends Object
Used by both HTTP server and client to parse headers from DataReader.
  • Method Details

    • readHeaders

      public static WritableHeaders<?> readHeaders(DataReader reader, int maxHeadersSize, boolean validate)
      Read headers from the provided reader.
      Parameters:
      reader - reader to pull data from
      maxHeadersSize - maximal size of all headers, in bytes
      validate - whether to validate headers
      Returns:
      a new mutable headers instance containing all headers parsed from reader