Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
request.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "http.h"
4 #include "message_body.h"
5 #include "uri.h"
6 #include "headers.h"
7 
14 class Request {
15  HTTP::Method method;
16  URI * uri;
17  HTTP::Version version;
18  Headers * headers;
19  MessageBody * body;
20  std::string rawData;
21 public:
25  Request();
26 
41  Request(HTTP::Method method, std::string & URI, HTTP::Version version,
42  std::string & headers, std::string & body, std::string raw);
43 
47  ~Request();
48 
56 
63  URI * getURI();
64 
72 
79  Headers * getHeaders();
80 
88 
92  std::string getRawData();
93 };
wrapper class for http body
Definition: message_body.h:10
class represents http uri
Definition: uri.h:12
URI * getURI()
HTTP::Method getMethod()
class wrapper of HTTP request
Definition: request.h:14
std::string getRawData()
HTTP::Version getVersion()
Version
Definition: http.h:33
Headers * getHeaders()
MessageBody * getMessageBody()
Method
Definition: http.h:16
wrapper class for http headers
Definition: headers.h:11