public interface IHTTPResponsePushbackMessage extends IHTTPResponseMessage
IPushbackMessageBody.EMPTY_BODYCR, DEFAULT_INITIAL_BUFFER_SIZE, HT, INIT_NUM_HEADERS, LF, SP| Modifier and Type | Method and Description |
|---|---|
IPushbackMessageBody |
getPushbackMessageBody()
Returns a message body that can provide
PushbackInputStream for reading the body. |
byte[] |
readBody(long timeout,
boolean pushback)
Reads the body of this message and returns it as an array of bytes.
|
getReasonPhraseAsBytes, getReasonPhraseAsString, getStatusCodeAsBytes, getStatusCodeAsStringaddTrailingHeader, getHeader, getHeaderAsBytes, getHeaders, getHTTPVersionAsBytes, getHTTPVersionAsString, getMessageBody, getSerial, getTid, isChunkedEncoding, isConnectionToBeClosed, isHTTPVersion1_1, removeHeader, setChunkedEncoding, setConnectionHeader, setHeader, setTid, write, writeBodybyte[] readBody(long timeout,
boolean pushback)
throws IOException,
TimeoutException
timeout - number of milliseconds until when the message body is read, or 0 if it does not need to timeoutpushback - true if the read bytes need to be pushed back to the input streamIOExceptionTimeoutExceptionIPushbackMessageBody getPushbackMessageBody()
PushbackInputStream for reading the body.PushbackInputStream for reading the body.