proxygen
|
Public Attributes | |
uint32_t | headersComplete {0} |
uint32_t | messageComplete {0} |
uint32_t | errors {0} |
uint32_t | bodyLen {0} |
HTTPHeaderSize | headerSize |
std::unique_ptr< HTTPMessage > | msg_ |
Definition at line 22 of file HTTP1xCodecTest.cpp.
|
inline |
Definition at line 24 of file HTTP1xCodecTest.cpp.
|
inlineoverridevirtual |
Called for each block of message body data
stream | The stream ID |
chain | One or more buffers of body data. The codec will remove any protocol framing, such as HTTP/1.1 chunk headers, from the buffers before calling this function. |
padding | Number of pad bytes that came with the data segment |
Implements proxygen::HTTPCodec::Callback.
Definition at line 37 of file HTTP1xCodecTest.cpp.
References folly::IOBuf::computeChainDataLength().
|
inlineoverridevirtual |
Called when the terminating CRLF is received to end a chunk of HTTP body data.
stream | The stream ID |
Reimplemented from proxygen::HTTPCodec::Callback.
Definition at line 44 of file HTTP1xCodecTest.cpp.
|
inlineoverridevirtual |
Called for each HTTP chunk header.
onChunkHeader() will be called when the chunk header is received. As the chunk data arrives, it will be passed to the callback normally with onBody() calls. Note that the chunk data may arrive in multiple onBody() calls: it is not guaranteed to arrive in a single onBody() call.
After the chunk data has been received and the terminating CRLF has been received, onChunkComplete() will be called.
stream | The stream ID |
length | The chunk length. |
Reimplemented from proxygen::HTTPCodec::Callback.
Definition at line 42 of file HTTP1xCodecTest.cpp.
|
inlineoverridevirtual |
Called when a parsing or protocol error has occurred
stream | The stream ID |
error | Description of the error |
newTxn | true if onMessageBegin has not been called for txn |
Implements proxygen::HTTPCodec::Callback.
Definition at line 51 of file HTTP1xCodecTest.cpp.
References proxygen::ERROR.
|
inlineoverridevirtual |
Called when all the headers of an ingress message have been parsed
stream | The stream ID |
msg | The message |
size | Size of the ingress header |
Implements proxygen::HTTPCodec::Callback.
Definition at line 31 of file HTTP1xCodecTest.cpp.
References proxygen::HTTPMessage::getIngressHeaderSize(), folly::recordio_helpers::headerSize(), and folly::gen::move.
|
inlineoverridevirtual |
Called when a new message is seen while parsing the ingress
stream | The stream ID |
msg | A newly allocated HTTPMessage |
Implements proxygen::HTTPCodec::Callback.
Definition at line 26 of file HTTP1xCodecTest.cpp.
|
inlineoverridevirtual |
Called at end of a message (including body and trailers, if applicable)
stream | The stream ID |
upgrade | Whether the connection has been upgraded to another protocol. |
Implements proxygen::HTTPCodec::Callback.
Definition at line 47 of file HTTP1xCodecTest.cpp.
|
inlineoverridevirtual |
Called when a new push message is seen while parsing the ingress.
stream | The stream ID |
assocStream | The stream ID of the associated stream, which can never be 0 |
msg | A newly allocated HTTPMessage |
Reimplemented from proxygen::HTTPCodec::Callback.
Definition at line 28 of file HTTP1xCodecTest.cpp.
|
inlineoverridevirtual |
Called when all the trailers of an ingress message have been parsed, but only if the number of trailers is nonzero.
stream | The stream ID |
trailers | The message trailers |
Implements proxygen::HTTPCodec::Callback.
Definition at line 45 of file HTTP1xCodecTest.cpp.
uint32_t HTTP1xCodecCallback::bodyLen {0} |
Definition at line 61 of file HTTP1xCodecTest.cpp.
Referenced by TEST().
uint32_t HTTP1xCodecCallback::errors {0} |
Definition at line 60 of file HTTP1xCodecTest.cpp.
Referenced by TEST().
uint32_t HTTP1xCodecCallback::headersComplete {0} |
Definition at line 58 of file HTTP1xCodecTest.cpp.
HTTPHeaderSize HTTP1xCodecCallback::headerSize |
Definition at line 62 of file HTTP1xCodecTest.cpp.
Referenced by TEST().
uint32_t HTTP1xCodecCallback::messageComplete {0} |
Definition at line 59 of file HTTP1xCodecTest.cpp.
Referenced by TEST().
std::unique_ptr<HTTPMessage> HTTP1xCodecCallback::msg_ |
Definition at line 63 of file HTTP1xCodecTest.cpp.