java.lang.Object
io.helidon.http.Http1HeadersParser
Used by both HTTP server and client to parse headers from
DataReader
.-
Method Summary
Modifier and TypeMethodDescriptionstatic WritableHeaders
<?> readHeaders
(DataReader reader, int maxHeadersSize, boolean validate) Read headers from the provided reader.
-
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 frommaxHeadersSize
- maximal size of all headers, in bytesvalidate
- whether to validate headers- Returns:
- a new mutable headers instance containing all headers parsed from reader
-