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


Public Member Functions | |
| 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 Query (Request or Response)
Establishes the base architecture for all HTTP Queries used by the server, to be used for Requests and Responses.
|
pure virtual |
Add header to map of headers.
IHttpQuery adds a header to the map of headers for use by the http protocol.
| key | string representing header name, used as map key. |
| value | string representing header value, used as map value. |
|
pure virtual |
Getter for Data.
IHttpQuery get data used for the http protocol.
|
pure virtual |
Getter for map of headers.
IHttpQuery get a map of headers used for Http Queries.
|
pure virtual |
Remove header from map of headers.
IHttpQuery removes the specified header from the map of headers if found.
| key | string representing header name, used as map key. |
|
pure virtual |
Setter for Data.
IHttpQuery set data used for the http protocol.
| data | a constant string reference of the data for the http protocol. |