Interface Http2PromisedRequestVerifier


  • @UnstableApi
    public interface Http2PromisedRequestVerifier
    Provides an extensibility point for users to define the validity of push requests.
    See Also:
    [RFC 7540], Section 8.2.
    • Method Detail

      • 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:
        [RFC 7231], Section 4.2.3.
      • 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:
        [RFC 7231], Section 4.2.1.