@UnstableApi public interface Http2PromisedRequestVerifier
限定符和类型 | 字段和说明 |
---|---|
static Http2PromisedRequestVerifier |
ALWAYS_VERIFY
A default implementation of
Http2PromisedRequestVerifier which always returns positive responses for
all verification challenges. |
限定符和类型 | 方法和说明 |
---|---|
boolean |
isAuthoritative(ChannelHandlerContext ctx,
Http2Headers headers)
Determine if a
Http2Headers are authoritative for a particular ChannelHandlerContext . |
boolean |
isCacheable(Http2Headers headers)
Determine if a request is cacheable.
|
boolean |
isSafe(Http2Headers headers)
Determine if a request is safe.
|
static final Http2PromisedRequestVerifier ALWAYS_VERIFY
Http2PromisedRequestVerifier
which always returns positive responses for
all verification challenges.boolean isAuthoritative(ChannelHandlerContext ctx, Http2Headers headers)
Http2Headers
are authoritative for a particular ChannelHandlerContext
.ctx
- The context on which the headers
where received on.headers
- The headers to be verified.true
if the ctx
is authoritative for the headers
, false
otherwise.boolean isCacheable(Http2Headers headers)
headers
- The headers for a push request.true
if the request associated with headers
is known to be cacheable,
false
otherwise.boolean isSafe(Http2Headers headers)
headers
- The headers for a push request.true
if the request associated with headers
is known to be safe,
false
otherwise.