public interface HttpStreamResponseHandler
Modifier and Type | Method and Description |
---|---|
default int |
onResponseBody(HttpStream stream,
byte[] bodyBytesIn)
Called when new Response Body bytes have been received.
|
void |
onResponseComplete(HttpStream stream,
int errorCode)
Called from Native when the Response has completed.
|
void |
onResponseHeaders(HttpStream stream,
int responseStatusCode,
int blockType,
HttpHeader[] nextHeaders)
Called from Native when new Http Headers have been received.
|
default void |
onResponseHeadersDone(HttpStream stream,
int blockType)
Called from Native once all HTTP Headers are processed.
|
void onResponseHeaders(HttpStream stream, int responseStatusCode, int blockType, HttpHeader[] nextHeaders)
stream
- The HttpStream objectresponseStatusCode
- The HTTP Response Status CodeblockType
- The HTTP header block typenextHeaders
- The headers received in the latest IO event.default void onResponseHeadersDone(HttpStream stream, int blockType)
stream
- The HttpStream objectblockType
- The type of the header block, corresponds to HttpHeaderBlock
default int onResponseBody(HttpStream stream, byte[] bodyBytesIn)
stream
- The HTTP Stream the body was delivered tobodyBytesIn
- The HTTP Body Bytes received in the last IO Event.void onResponseComplete(HttpStream stream, int errorCode)
stream
- completed streamerrorCode
- resultant errorCode for the responseCopyright © 2021. All rights reserved.