RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Member Functions | |
virtual void | onGotTransport () |
virtual void | handleHttpChunk (const HttpHeader &httpHeader, const std::string &chunkHeader, const std::string &chunk) |
virtual void | handleDisconnect () |
virtual std::string | status () const |
virtual void | handleError (const std::string &message) |
void | doEvent (const char *eventName, EventType type=ET_COUNT, float value=1.0, const char *units="") |
std::shared_ptr < ChunkedHttpHandler > | makeNewHandlerShared () |
Public Attributes | |
ChunkedHttpEndpoint * | endpoint |
Static Public Attributes | |
static long | created = 0 |
static long | destroyed = 0 |
Definition at line 21 of file chunked_http_endpoint.h.
void Datacratic::ChunkedHttpHandler::handleDisconnect | ( | ) | [virtual] |
Got a disconnection
Reimplemented from Datacratic::ConnectionHandler.
Definition at line 55 of file chunked_http_endpoint.cc.
void Datacratic::ChunkedHttpHandler::handleError | ( | const std::string & | message | ) | [virtual] |
We got an error. Send back an HTTP error response.
Reimplemented from Datacratic::HttpConnectionHandler.
Definition at line 72 of file chunked_http_endpoint.cc.
void Datacratic::ChunkedHttpHandler::handleHttpChunk | ( | const HttpHeader & | httpHeader, |
const std::string & | chunkHeader, | ||
const std::string & | chunk | ||
) | [virtual] |
Deal with the chunk. Default calls onChunk from the handler.
Reimplemented from Datacratic::HttpConnectionHandler.
Definition at line 63 of file chunked_http_endpoint.cc.
std::shared_ptr< ChunkedHttpHandler > Datacratic::ChunkedHttpHandler::makeNewHandlerShared | ( | ) |
Create a new connection handler. Delegates to the endpoint. This is used after a response is sent to set the connection up for a new request.
Reimplemented from Datacratic::HttpConnectionHandler.
Definition at line 104 of file chunked_http_endpoint.cc.
void Datacratic::ChunkedHttpHandler::onGotTransport | ( | ) | [virtual] |
We got our transport.
Reimplemented from Datacratic::HttpConnectionHandler.
Definition at line 40 of file chunked_http_endpoint.cc.