public interface ResponseHandler
NetworkEventReporter.interpretResponseStream(java.lang.String, java.lang.String, java.lang.String, java.io.InputStream, com.facebook.stetho.inspector.network.ResponseHandler).| Modifier and Type | Method and Description |
|---|---|
void |
onEOF()
Signals that EOF has been reached reading the response stream from the network
stack.
|
void |
onError(java.io.IOException e)
Signals that an error occurred while reading the response stream.
|
void |
onRead(int numBytes)
Signal that data has been read from the response stream.
|
void |
onReadDecoded(int numBytes)
Signal that data has been decoded (reversing the response's
Content-Encoding) while
reading a raw stream. |
void onRead(int numBytes)
numBytes - Bytes read from the network stack's stream as established by
NetworkEventReporter.interpretResponseStream(java.lang.String, java.lang.String, java.lang.String, java.io.InputStream, com.facebook.stetho.inspector.network.ResponseHandler).void onReadDecoded(int numBytes)
Content-Encoding) while
reading a raw stream. This method is only called when the stream is known to have
a supported encoding. Note that for HTTP, content encoding almost always is used for
some form of response compression.numBytes - Bytes yielded after decoding bytes received from the network stack's
stream.void onEOF()
void onError(java.io.IOException e)