public interface PushService
A service that implements HTTP/2 server-push and pushes all the given paths to the response initiated by the specified request.
If the request is not sent over HTTP/2 or push is simply not supported, then the service should do nothing.
Modifier and Type | Method and Description |
---|---|
void |
push(HttpServletRequest request,
HttpServletResponse response,
Collection<String> paths)
Pushes to the client associated to the specified request/response the resources associated to the given paths.
|
void push(HttpServletRequest request, HttpServletResponse response, Collection<String> paths)
Pushes to the client associated to the specified request/response the resources associated to the given paths.
request
- the requestresponse
- the responsepaths
- the pahtsCopyright © 2012-2015. All Rights Reserved.