OpenSDN source code
|
#include <http_request.h>
Public Types | |
typedef std::map< std::string, std::string > | HeaderMap |
Public Member Functions | |
HttpRequest () | |
void | SetMethod (http_method method) |
http_method | GetMethod () const |
void | SetUrl (std::string *url) |
void | PushHeader (const std::string &key, const std::string &value) |
void | SetBody (const char *data, size_t length) |
void | SetEvent (enum TcpSession::Event event) |
std::string | ToString () const |
std::string | UrlPath () const |
std::string | UrlQuery () const |
const HeaderMap & | Headers () const |
const std::string & | Body () const |
TcpSession::Event | Event () const |
Private Attributes | |
http_method | method_ |
std::string | url_ |
HeaderMap | headers_ |
std::string | body_ |
TcpSession::Event | event_ |
Definition at line 14 of file http_request.h.
typedef std::map<std::string, std::string> HttpRequest::HeaderMap |
Definition at line 16 of file http_request.h.
HttpRequest::HttpRequest | ( | ) |
Definition at line 11 of file http_request.cc.
|
inline |
Definition at line 39 of file http_request.h.
|
inline |
Definition at line 40 of file http_request.h.
|
inline |
Definition at line 21 of file http_request.h.
|
inline |
Definition at line 38 of file http_request.h.
|
inline |
Definition at line 26 of file http_request.h.
|
inline |
Definition at line 29 of file http_request.h.
|
inline |
Definition at line 32 of file http_request.h.
|
inline |
Definition at line 20 of file http_request.h.
|
inline |
Definition at line 23 of file http_request.h.
string HttpRequest::ToString | ( | ) | const |
Definition at line 15 of file http_request.cc.
string HttpRequest::UrlPath | ( | ) | const |
string HttpRequest::UrlQuery | ( | ) | const |
|
private |
Definition at line 45 of file http_request.h.
|
private |
Definition at line 46 of file http_request.h.
|
private |
Definition at line 44 of file http_request.h.
|
private |
Definition at line 42 of file http_request.h.
|
private |
Definition at line 43 of file http_request.h.