Hi,
On Thu, Feb 2, 2017 at 3:40 PM, Tomas Remes <[email protected]> wrote:
>
> Hi,
>
> I am experimenting with [1]. If I am not mistaken then frame.isEndStream()
> never happens for onHeaders event.
It may happen for any response that has no body, such as redirects, etc.
> Is it intentional? I thought I can obtain response data (as status etc.) in
> this moment.
You can:
HeaderFrame frame = ...;
MetaData metaData = frame.getMetaData();
if (metaData.isResponse()) {
MetaData.Response response = (MetaData.Response)metaData;
int status = response.getStatus();
// etc.
}
> Thanks
>
> [1]
> https://github.com/eclipse/jetty.project/blob/jetty-9.4.1.v20170120/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/Client.java
--
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://dev.eclipse.org/mailman/listinfo/jetty-users