Stream.Listener

<p>A {@link Stream.Listener} is the passive counterpart of a {@link Stream} and receives events happening on a HTTP/2 stream.</p>

@see Stream

Members

Classes

Adapter
class Adapter

<p>Empty implementation of {@link Listener}</p>

Functions

onData
void onData(Stream stream, DataFrame frame, Callback callback)

<p>Callback method invoked when a DATA frame has been received.</p>

onHeaders
void onHeaders(Stream stream, HeadersFrame frame)

<p>Callback method invoked when a HEADERS frame representing the HTTP response has been received.</p>

onIdleTimeout
bool onIdleTimeout(Stream stream, Exception x)

<p>Callback method invoked when the stream exceeds its idle timeout.</p>

onPush
Listener onPush(Stream stream, PushPromiseFrame frame)

<p>Callback method invoked when a PUSH_PROMISE frame has been received.</p>

onReset
void onReset(Stream stream, ResetFrame frame, Callback callback)
Undocumented in source.
onReset
void onReset(Stream stream, ResetFrame frame)

<p>Callback method invoked when a RST_STREAM frame has been received for this stream.</p>

toString
string toString()
Undocumented in source.

Meta