15 #include <arpa/inet.h>
16 #include <thrift/protocol/TBinaryProtocol.h>
19 #include <google/profiler.h>
32 typedef apache::thrift::protocol::TBinaryProtocol protocol_type;
34 boost::shared_ptr<transport_type> transport(
new transport_type(
response_p()));
35 boost::shared_ptr<protocol_type> protocol(
new protocol_type(transport));
53 int main(
int argc,
char** argv) {
55 ProfilerStart(
"uwsgi_server.prof");
59 auto tasks = std::vector<tasks::task*>{&srv, &s};
static std::shared_ptr< dispatcher > instance()
http_response & response()
int main(int argc, char **argv)
void set_status(std::string status)
void set_header(std::string header, std::string value)
void send_response()
Send the resonse back.
http_response * response_p()