public interface IHTTPResponsePushbackMessage extends IHTTPResponseMessage
IPushbackMessageBody
.EMPTY_BODY
CR, 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, getStatusCodeAsString
addTrailingHeader, getHeader, getHeaderAsBytes, getHeaders, getHTTPVersionAsBytes, getHTTPVersionAsString, getMessageBody, getSerial, getTid, isChunkedEncoding, isConnectionToBeClosed, isHTTPVersion1_1, removeHeader, setChunkedEncoding, setConnectionHeader, setHeader, setTid, write, writeBody
byte[] 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 streamIOException
TimeoutException
IPushbackMessageBody getPushbackMessageBody()
PushbackInputStream
for reading the body.PushbackInputStream
for reading the body.