Namespaces | Classes | Typedefs | Functions
async_web_server_cpp Namespace Reference

Namespaces

 misc_strings
 
 status_strings
 
 stock_replies
 

Classes

class  BodyCollectingConnection
 
class  FileHttpRequestHandler
 
class  FilesystemHttpRequestHandler
 
class  HttpConnection
 
struct  HttpHeader
 
struct  HttpReply
 
struct  HttpRequest
 
class  HttpRequestBodyCollector
 
class  HttpRequestHandlerGroup
 
class  HttpRequestParser
 
class  HttpServer
 
class  PathMatcher
 
class  ReplyBuilder
 
class  StaticHttpRequestHandler
 
class  WebsocketConnection
 
class  WebsocketFrame
 
class  WebsocketFrameBuffer
 
class  WebsocketFrameParser
 
class  WebsocketHttpRequestHandler
 
class  WebsocketMessage
 

Typedefs

typedef boost::shared_ptr< BodyCollectingConnectionBodyCollectingConnectionPtr
 
typedef boost::weak_ptr< BodyCollectingConnectionBodyCollectingConnectionWeakPtr
 
typedef boost::shared_ptr< HttpConnectionHttpConnectionPtr
 
typedef boost::weak_ptr< HttpConnectionHttpConnectionWeakPtr
 
typedef boost::function< bool(const HttpRequest &, boost::shared_ptr< HttpConnection >, const char *begin, const char *end)> HttpServerRequestHandler
 
typedef boost::shared_ptr< WebsocketConnectionWebsocketConnectionPtr
 
typedef boost::weak_ptr< WebsocketConnectionWebsocketConnectionWeakPtr
 
typedef boost::function< WebsocketConnection::MessageHandler(const HttpRequest &, boost::shared_ptr< WebsocketConnection >)> WebsocketRequestHandler
 

Functions

static bool hasContentType (const std::vector< HttpHeader > &headers)
 
static bool serveFromFile (HttpReply::status_type status, const std::string &filename, const std::vector< HttpHeader > &headers, boost::shared_ptr< HttpConnection > connection)
 
static std::string sniffContentType (const std::string &filename)
 
static boost::regex uri_regex ("(.*?)(?:\\?(.*?))?")
 

Typedef Documentation

◆ BodyCollectingConnectionPtr

Definition at line 70 of file http_request_handler.cpp.

◆ BodyCollectingConnectionWeakPtr

Definition at line 73 of file http_request_handler.cpp.

◆ HttpConnectionPtr

Definition at line 17 of file http_connection.hpp.

◆ HttpConnectionWeakPtr

Definition at line 19 of file http_connection.hpp.

◆ HttpServerRequestHandler

typedef boost::function<bool(const HttpRequest&, boost::shared_ptr<HttpConnection>, const char* begin, const char* end)> async_web_server_cpp::HttpServerRequestHandler

A handler for requests Should return true if the request was successfuly handled Returning false will cause the next matching handler to be triggered If false is returned then nothing should be written to the connection

Definition at line 12 of file http_request_handler.hpp.

◆ WebsocketConnectionPtr

Definition at line 18 of file websocket_connection.hpp.

◆ WebsocketConnectionWeakPtr

Definition at line 20 of file websocket_connection.hpp.

◆ WebsocketRequestHandler

Definition at line 13 of file websocket_request_handler.hpp.

Function Documentation

◆ hasContentType()

static bool async_web_server_cpp::hasContentType ( const std::vector< HttpHeader > &  headers)
static

Definition at line 256 of file http_reply.cpp.

◆ serveFromFile()

static bool async_web_server_cpp::serveFromFile ( HttpReply::status_type  status,
const std::string &  filename,
const std::vector< HttpHeader > &  headers,
boost::shared_ptr< HttpConnection connection 
)
static

Definition at line 287 of file http_reply.cpp.

◆ sniffContentType()

static std::string async_web_server_cpp::sniffContentType ( const std::string &  filename)
static

Definition at line 266 of file http_reply.cpp.

◆ uri_regex()

static boost::regex async_web_server_cpp::uri_regex ( "(.*?)(?:\\?(.*?))?"  )
static


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Tue Mar 1 2022 23:49:06