Interface Http2PromisedRequestVerifier
public interface Http2PromisedRequestVerifier
Provides an extensibility point for users to define the validity of push requests.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Http2PromisedRequestVerifierA default implementation ofHttp2PromisedRequestVerifierwhich always returns positive responses for all verification challenges. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAuthoritative(ChannelHandlerContext ctx, Http2Headers headers) Determine if aHttp2Headersare authoritative for a particularChannelHandlerContext.booleanisCacheable(Http2Headers headers) Determine if a request is cacheable.booleanisSafe(Http2Headers headers) Determine if a request is safe.
-
Field Details
-
ALWAYS_VERIFY
A default implementation ofHttp2PromisedRequestVerifierwhich always returns positive responses for all verification challenges.
-
-
Method Details
-
isAuthoritative
Determine if aHttp2Headersare authoritative for a particularChannelHandlerContext.- Parameters:
ctx- The context on which theheaderswhere received on.headers- The headers to be verified.- Returns:
trueif thectxis authoritative for theheaders,falseotherwise.- See Also:
-
isCacheable
Determine if a request is cacheable.- Parameters:
headers- The headers for a push request.- Returns:
trueif the request associated withheadersis known to be cacheable,falseotherwise.- See Also:
-
isSafe
Determine if a request is safe.- Parameters:
headers- The headers for a push request.- Returns:
trueif the request associated withheadersis known to be safe,falseotherwise.- See Also:
-