Interface Http2PromisedRequestVerifier


@UnstableApi public interface Http2PromisedRequestVerifier
Provides an extensibility point for users to define the validity of push requests.
See Also:
  • Field Details

  • Method Details

    • isAuthoritative

      boolean isAuthoritative(ChannelHandlerContext ctx, Http2Headers headers)
      Determine if a Http2Headers are authoritative for a particular ChannelHandlerContext.
      Parameters:
      ctx - The context on which the headers where received on.
      headers - The headers to be verified.
      Returns:
      true if the ctx is authoritative for the headers, false otherwise.
      See Also:
    • isCacheable

      boolean isCacheable(Http2Headers headers)
      Determine if a request is cacheable.
      Parameters:
      headers - The headers for a push request.
      Returns:
      true if the request associated with headers is known to be cacheable, false otherwise.
      See Also:
    • isSafe

      boolean isSafe(Http2Headers headers)
      Determine if a request is safe.
      Parameters:
      headers - The headers for a push request.
      Returns:
      true if the request associated with headers is known to be safe, false otherwise.
      See Also: