Hi,

On Fri, Mar 15, 2019 at 9:15 PM James Northrup <[email protected]> wrote:
>
> deeper rtfm leads me to beleive I should refactor to a handler, yes, though i 
> want the handler's results to have h2 push and gzip as well

Still not there, I believe :)

HTTP/2 is configured at the ServerConnector level, not at the handler level.

GZIP is configured at the handler level, via GZIPHandler.

The HTTP/2 Push functionality is coded in a Servlet Filter, the PushCacheFilter.
As such, you can URL map it to whatever path you want, from /* to a
more specific /images/*, etc.

So a typical request of yours will go:

network -> ServerConnector -> Server -> GZIPHandler ->
ServletContextHandler -> PushCacheFiilter -> YourServlet/RESTServlet.

Hope this helps.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to