users@jersey.java.net

[Jersey] Sending headers with EventSource

From: Paul Loberg <lists-jersey-users_at_loberg.no>
Date: Wed, 11 Jun 2014 14:19:06 +0200

I have set up a SSE stream resource in my REST API and use the
Authorization header to authorize access to it. However, in tests I'm using
the EventSource class to connect to it and I cannot find any means to send
the Authorization header with it. I also need to send other custom headers,
but there seems to be no way of doing that. Are there any "tricks" to
achieve this?

Thanks,

 -- Paul