Interface PushBuilder


@Deprecated public interface PushBuilder
Deprecated.
In favor of 103 early hints
Builds a push request based on the HttpServletRequest from which this builder was obtained. The push request will be constructed on the following basis:
  • The request method is set to GET.
  • The path will not be set. This must be set explicitly via a call to path(String).
  • Conditional, range, expectation, authorization and referer headers will be removed.
  • Cookies added to the associated response will be added to the push request unless maxAge <= 0 in which case any request cookie with the same name will be removed.
  • The referer header will be set to HttpServletRequest.getRequestURL() plus, if present, the query string from HttpServletRequest.getQueryString().
Since:
Servlet 4.0