|
API New Year
1.0
API for the project ZIA, EPITECH 2017.
|
Base class representing the minimum information needed for each HTTP Request. More...
#include <IHttpRequest.h>


Public Member Functions | |
| virtual const std::string & | getUri (void) const =0 |
| Getter for URI. More... | |
| virtual void | setUri (const std::string &uri)=0 |
| Setter for URI. More... | |
| virtual const std::string & | getMethod (void) const =0 |
| Getter for Method. More... | |
| virtual void | setMethod (const std::string &method)=0 |
| Setter for Method. More... | |
Public Member Functions inherited from ApiNewYear::IHttpQuery | |
| virtual void | setData (const std::string &data)=0 |
| Setter for Data. More... | |
| virtual const std::string & | getData (void) const =0 |
| Getter for Data. More... | |
| virtual const std::map< std::string, std::string > & | getHeaders (void) const =0 |
| Getter for map of headers. More... | |
| virtual void | addHeader (const std::string &key, const std::string &value)=0 |
| Add header to map of headers. More... | |
| virtual void | removeHeader (const std::string &key)=0 |
| Remove header from map of headers. More... | |
Base class representing the minimum information needed for each HTTP Request.
Establishes the base architecture for all HTTP Requests used by the server.
|
pure virtual |
Getter for Method.
IHttpRequest get string Method used for Http Requests.
|
pure virtual |
Getter for URI.
IHttpRequest get string containing URI for HTTP Requests.
|
pure virtual |
Setter for Method.
IHttpRequest set string Method used for Http Requests.
| method | a constant string refernce of the http method used. |
|
pure virtual |
Setter for URI.
IHttpRequest set string URI for HTTP Requests.
| a | constant string reference of the URI. |