Crow  0.3
A C++ microframework for the web
crow::Connection< Adaptor, Handler, Middlewares > Class Template Reference

An HTTP connection. More...

#include <http_connection.h>

Public Member Functions

 Connection (boost::asio::io_service &io_service, Handler *handler, const std::string &server_name, std::tuple< Middlewares... > *middlewares, std::function< std::string()> &get_cached_date_str_f, detail::dumb_timer_queue &timer_queue, typename Adaptor::context *adaptor_ctx_)
decltype(std::declval< Adaptor >().raw_socket()) & socket ()
 The TCP socket on top of which the connection is established.
void start ()
void handle_header ()
void handle ()
void complete_request ()
 Call the after handle middleware and send the write the response to the connection.


struct crow::response

Detailed Description

template<typename Adaptor, typename Handler, typename ... Middlewares>
class crow::Connection< Adaptor, Handler, Middlewares >

An HTTP connection.

The documentation for this class was generated from the following file: