#include <HTTPConnection.h>
Public Types | |
| enum | Compression : uint8_t { None, Gzip, Deflate } |
|
typedef std::shared_ptr < HTTPConnection > | shared |
Public Member Functions | |
| HTTPConnection (const HTTP &http, sella::net::TCPSocket::shared &socket, timeval tv=ReceiveTimeoutDefault) throw () | |
| const HTTPRequest & | getRequest (void) throw (ServerException) |
| struct timespec | getRuntime (void) const throw () |
| bool | isUsable (void) const throw () |
| bool | isSecure (void) const throw () |
| void | response (const std::string &body, const std::string &contentType=ContentTypeDefault, bool close=true) throw (ServerException) |
| void | response (const std::vector< char > &content, const std::string &contentType, bool close=true) throw (ServerException) |
| void | error (int code, const std::string &detail=std::string(), const std::string &contentType=ContentTypeDefault) throw (ServerException) |
| void | error (int code, const std::vector< char > &content, const std::string &contentType=ContentTypeDefault) throw (ServerException) |
| void | methodOptions (void) throw (ServerException) |
| void | methodGet (void) throw (ServerException) |
| void | methodHead (void) throw (ServerException) |
| void | methodPost (void) throw (ServerException) |
| void | methodPut (void) throw (ServerException) |
| void | methodDelete (void) throw (ServerException) |
| void | methodTrace (void) throw (ServerException) |
| void | methodConnect (void) throw (ServerException) |
| void | methodPatch (void) throw (ServerException) |
| sella::net::IPAddressPort | getLocalIPAddressPort (void) const throw (ServerException) |
| sella::net::IPAddressPort | getRemoteIPAddressPort (void) const throw (ServerException) |
| const char * | getSSLLibraryVersion (void) const throw () |
| const char * | getActiveProtocol (void) const throw () |
| const char * | getActiveCipher (void) const throw () |
| std::string | getContentType (HTTPRequest::AcceptType type, const std::string &fallback=std::string()) const throw () |
| void | clear (void) throw () |
Static Public Member Functions | |
| static const HTTPConnection::shared | shared_ptr (const HTTP &http, sella::net::TCPSocket::shared &socket, timeval tv=ReceiveTimeoutDefault) throw () |
Protected Attributes | |
| const HTTP & | http |
| sella::net::TCPSocket::shared | socket |
| struct timespec | start |
| HTTPRequest | request |
Provides incoming HTTP connection and code for replying to a request.
Definition at line 32 of file HTTPConnection.h.
1.8.5