public interface HttpHeadersFactory
HttpHeaders.| Modifier and Type | Method and Description |
|---|---|
default HttpHeaders |
newEmptyTrailers()
Create an
HttpHeaders instance designed to hold
trailers, possibly optimized for being empty. |
HttpHeaders |
newHeaders()
Create an
HttpHeaders instance. |
HttpHeaders |
newTrailers()
Create an
HttpHeaders instance designed to hold
trailers. |
boolean |
validateCookies()
Determine if cookies should be validated during parsing into
HttpSetCookies. |
default boolean |
validateNames()
Determine if header names should be validated during parsing into
HttpHeaderss. |
boolean |
validateValues()
Determine if header values should be validated during parsing into
HttpHeaderss. |
HttpHeaders newHeaders()
HttpHeaders instance.HttpHeaders instance.HttpHeaders newTrailers()
HttpHeaders instance designed to hold
trailers.HttpHeaders instance.default HttpHeaders newEmptyTrailers()
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.
HttpHeaders instance.default boolean validateNames()
HttpHeaderss.true if header names should be validated during parsing into HttpHeaderss.boolean validateCookies()
HttpSetCookies.true if a cookies should be validated during parsing into HttpSetCookies.boolean validateValues()
HttpHeaderss.true if header values should be validated during parsing into HttpHeaderss.