![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <rest_service_endpoint.h>
Classes | |
struct | Itl |
Public Member Functions | |
ConnectionId (const std::string &zmqAddress, const std::string &requestId, RestServiceEndpoint *endpoint) | |
Initialize for zeromq. | |
ConnectionId (HttpNamedEndpoint::RestConnectionHandler *http, const std::string &requestId, RestServiceEndpoint *endpoint) | |
Initialize for http. | |
void | sendResponse (int responseCode, const char *response, const std::string &contentType) const |
void | sendResponse (int responseCode, const std::string &response, const std::string &contentType) const |
void | sendResponse (int responseCode, const Json::Value &response, const std::string &contentType="application/json") const |
void | sendResponse (int responseCode) const |
void | sendErrorResponse (int responseCode, const std::string &error, const std::string &contentType) const |
void | sendErrorResponse (int responseCode, const char *error, const std::string &contentType) const |
void | sendErrorResponse (int responseCode, const Json::Value &error) const |
Public Attributes | |
std::shared_ptr< Itl > | itl |
Defines a connection: either a zeromq connection (identified by its zeromq identifier) or an http connection (identified by its connection handler object).
Definition at line 102 of file rest_service_endpoint.h.
void Datacratic::RestServiceEndpoint::ConnectionId::sendErrorResponse | ( | int | responseCode, |
const std::string & | error, | ||
const std::string & | contentType | ||
) | const [inline] |
Send the given error string back on the connection.
Definition at line 232 of file rest_service_endpoint.h.
void Datacratic::RestServiceEndpoint::ConnectionId::sendResponse | ( | int | responseCode, |
const std::string & | response, | ||
const std::string & | contentType | ||
) | const [inline] |
Send the given response back on the connection.
Definition at line 168 of file rest_service_endpoint.h.
void Datacratic::RestServiceEndpoint::ConnectionId::sendResponse | ( | int | responseCode, |
const Json::Value & | response, | ||
const std::string & | contentType = "application/json" |
||
) | const [inline] |
Send the given response back on the connection.
Definition at line 197 of file rest_service_endpoint.h.