Thanks Simone. Here is a code I want to reject to the pushed resource. But
if I use stream.reset(). I cannot get frames of the index.html only result
is :

PushPromiseFrame@36e05d20#1/#2https://127.0.0.1:8081/

GET{u=https://127.0.0.1:8081/img/res/main-text.png,HTTP/2.0,h=1}

1

2

I think I just refused to receive the pushed resource and I should get the
data I made request to. Do you know why?

@Override

            public Stream.Listener onPush(Stream stream, PushPromiseFrame
frame)

            {

                System.err.println(frame+"https://"+host+":"+port+"/";);

                System.out.println(frame.getMetaData());

                System.out.println(frame.getStreamId());

                System.out.println(frame.getPromisedStreamId());

                stream.reset(new ResetFrame(frame.getPromisedStreamId(),
1), null);

                return this;

            }

2015-09-22 23:05 GMT+08:00 Simone Bordet <[email protected]>:

> Hi,
>
> On Tue, Sep 22, 2015 at 5:02 PM, Muhui Jiang <[email protected]> wrote:
> > Hi
> >
> > Is jetty available to send rst_stream to the server ? Maybe I am
> careless I
> > cannot find sending rst_stream function in the javadoc. Many Thanks
>
> Stream.reset().
>
> --
> 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
>
_______________________________________________
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

Reply via email to