Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
class wrapper of HTTP request More...
#include <request.h>
Public Member Functions | |
Request () | |
Request (HTTP::Method method, std::string &URI, HTTP::Version version, std::string &headers, std::string &body, std::string raw) | |
~Request () | |
HTTP::Method | getMethod () |
URI * | getURI () |
HTTP::Version | getVersion () |
Headers * | getHeaders () |
MessageBody * | getMessageBody () |
std::string | getRawData () |
class wrapper of HTTP request
Object of this class is deserialized http request, where all consisting data is represented by objects of another classes
Request::Request | ( | ) |
Makes empty Request object, where method and version is undefined
Request::Request | ( | HTTP::Method | method, |
std::string & | URI, | ||
HTTP::Version | version, | ||
std::string & | headers, | ||
std::string & | body, | ||
std::string | raw | ||
) |
Makes Request object with declared arguments
method | http method of request |
URI | http request uri string, which is used to construct URI object |
version | request http version |
headers | http request headers string, which is used to construct Headers object |
body | http request body string, which is used to construct MessageBody object |
Request::~Request | ( | ) |
deletes URI, Headers and MessageBody objects
MessageBody* Request::getMessageBody | ( | ) |
get request body
HTTP::Method Request::getMethod | ( | ) |
get request method
std::string Request::getRawData | ( | ) |
HTTP::Version Request::getVersion | ( | ) |
get http version of request