Top Description Fields Methods
io.netty.handler.codec.http2

public Interface Http2PromisedRequestVerifier

Annotations
@UnstableApi
Imports
io.netty.channel.ChannelHandlerContext, io.netty.util.internal.UnstableApi

Provides an extensibility point for users to define the validity of push requests.
See Also
[RFC 7540], Section 8.2

Field Summary

Modifier and TypeField and Description
public static final Http2PromisedRequestVerifier
ALWAYS_VERIFY

A default implementation of Http2PromisedRequestVerifier which always returns positive responses for all verification challenges.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the ctx is authoritative for the headers, false otherwise.
isAuthoritative
(ChannelHandlerContext
The context on which the headers where received on.
ctx
,
Http2Headers
The headers to be verified.
headers
)

Determine if a Http2Headers are authoritative for a particular ChannelHandlerContext.

public boolean

Returns:

true if the request associated with headers is known to be cacheable, false otherwise.
isCacheable
(Http2Headers
The headers for a push request.
headers
)

Determine if a request is cacheable.

public boolean

Returns:

true if the request associated with headers is known to be safe, false otherwise.
isSafe
(Http2Headers
The headers for a push request.
headers
)

Determine if a request is safe.

Field Detail

ALWAYS_VERIFYback to summary
public static final Http2PromisedRequestVerifier ALWAYS_VERIFY

A default implementation of Http2PromisedRequestVerifier which always returns positive responses for all verification challenges.

Method Detail

isAuthoritativeback to summary
public boolean isAuthoritative(ChannelHandlerContext ctx, Http2Headers headers)

Determine if a Http2Headers are authoritative for a particular ChannelHandlerContext.

Parameters
ctx:ChannelHandlerContext

The context on which the headers where received on.

headers:Http2Headers

The headers to be verified.

Returns:boolean

true if the ctx is authoritative for the headers, false otherwise.

See Also
[RFC 7540], Section 10.1
isCacheableback to summary
public boolean isCacheable(Http2Headers headers)

Determine if a request is cacheable.

Parameters
headers:Http2Headers

The headers for a push request.

Returns:boolean

true if the request associated with headers is known to be cacheable, false otherwise.

See Also
[RFC 7231], Section 4.2.3
isSafeback to summary
public boolean isSafe(Http2Headers headers)

Determine if a request is safe.

Parameters
headers:Http2Headers

The headers for a push request.

Returns:boolean

true if the request associated with headers is known to be safe, false otherwise.

See Also
[RFC 7231], Section 4.2.1