|
ESA JPIP server
0.1
|
Class used to identify a HTTP response. More...
#include <response.h>
Classes | |
| class | StatusCodesInitializer |
| Class used for the initializer. More... | |
Public Member Functions | |
| Response (int code=200, const Protocol &protocol=Protocol(1, 1)) | |
| Initializes the response. More... | |
Public Attributes | |
| int | code |
| Status code. More... | |
| Protocol | protocol |
| Protocol version. More... | |
Static Public Attributes | |
| static map< int, string > | StatusCodes |
| Map with the strings associated to the most commonly used status codes. More... | |
Static Private Attributes | |
| static StatusCodesInitializer | statusCodesInitializer |
The initializer of the StatusCodes member. More... | |
Friends | |
| ostream & | operator<< (ostream &out, const Response &response) |
| istream & | operator>> (istream &in, Response &response) |
Class used to identify a HTTP response.
It is possible to use this class with standard streams.
Initializes the response.
| code | Status code (200 by default). |
| protocol | Protocol version (1.1 by default). |
|
friend |
|
friend |
| int http::Response::code |
Status code.
|
static |
Map with the strings associated to the most commonly used status codes.
In order to use a new user defined status code, it is necessary to include in this map the associated string.
|
staticprivate |
The initializer of the StatusCodes member.