Package io.servicetalk.http.api
Interface HttpHeadersFactory
-
- All Known Implementing Classes:
DefaultHttpHeadersFactory
,H2HeadersFactory
public interface HttpHeadersFactory
Factory method for creatingHttpHeaders
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HttpHeaders
newEmptyTrailers()
Create anHttpHeaders
instance designed to hold trailers, possibly optimized for being empty.HttpHeaders
newHeaders()
Create anHttpHeaders
instance.HttpHeaders
newTrailers()
Create anHttpHeaders
instance designed to hold trailers.boolean
validateCookies()
Determine if a cookies should be validated during parsing intoHttpSetCookie
s.
-
-
-
Method Detail
-
newHeaders
HttpHeaders newHeaders()
Create anHttpHeaders
instance.- Returns:
- an
HttpHeaders
instance.
-
newTrailers
HttpHeaders newTrailers()
Create anHttpHeaders
instance designed to hold trailers.- Returns:
- an
HttpHeaders
instance.
-
newEmptyTrailers
default HttpHeaders newEmptyTrailers()
Create anHttpHeaders
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.
-
validateCookies
boolean validateCookies()
Determine if a cookies should be validated during parsing intoHttpSetCookie
s.- Returns:
true
if a cookies should be validated during parsing intoHttpSetCookie
s.
-
-