Package io.netty.handler.codec.http2
Interface Http2PromisedRequestVerifier
Provides an extensibility point for users to define the validity of push requests.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Http2PromisedRequestVerifier
A default implementation ofHttp2PromisedRequestVerifier
which always returns positive responses for all verification challenges. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAuthoritative
(ChannelHandlerContext ctx, Http2Headers headers) Determine if aHttp2Headers
are authoritative for a particularChannelHandlerContext
.boolean
isCacheable
(Http2Headers headers) Determine if a request is cacheable.boolean
isSafe
(Http2Headers headers) Determine if a request is safe.
-
Field Details
-
ALWAYS_VERIFY
A default implementation ofHttp2PromisedRequestVerifier
which always returns positive responses for all verification challenges.
-
-
Method Details
-
isAuthoritative
Determine if aHttp2Headers
are authoritative for a particularChannelHandlerContext
.- Parameters:
ctx
- The context on which theheaders
where received on.headers
- The headers to be verified.- Returns:
true
if thectx
is authoritative for theheaders
,false
otherwise.- See Also:
-
isCacheable
Determine if a request is cacheable.- Parameters:
headers
- The headers for a push request.- Returns:
true
if the request associated withheaders
is known to be cacheable,false
otherwise.- See Also:
-
isSafe
Determine if a request is safe.- Parameters:
headers
- The headers for a push request.- Returns:
true
if the request associated withheaders
is known to be safe,false
otherwise.- See Also:
-