#include <MuHttpServer.h>
Public Types | |
| enum | CharacterEncodingTypeEnum { ASCII, UTF8, OCTET } |
| typedef EnumWrapper < CharacterEncodingTypeEnum > | CharacterEncodingType |
Public Member Functions | |
| Response () | |
Public Attributes | |
| QString | mBody |
| QByteArray | mOctets |
| QMap< QString, QString > | mHeaders |
| ResponseCode | mCode |
| CharacterEncodingType | mEncoding |
Definition at line 37 of file MuHttpServer.h.
| typedef EnumWrapper<CharacterEncodingTypeEnum> MuHttpServer::Response::CharacterEncodingType |
The EnumWrapper contains a given enum value and provides a isValid() method which returns true if the contained enum value is valid.
Please see How To Use EnumWrapper for more information. The wrapped enum values are MuHttpServer::Response::CharacterEncodingTypeEnum.
Definition at line 75 of file MuHttpServer.h.
Definition at line 65 of file MuHttpServer.h.
| MuHttpServer::Response::Response | ( | ) |
Create an uninitialized Response with a default encoding type of ASCII.
Definition at line 85 of file MuHttpServer.h.
| QString MuHttpServer::Response::mBody |
The body of the response message if the response is 8-bit safe.
(i.e. ASCII)
Definition at line 42 of file MuHttpServer.h.
| QByteArray MuHttpServer::Response::mOctets |
The body of the response message if the response is not 8-bit safe.
(i.e. a raw image)
Definition at line 47 of file MuHttpServer.h.
| QMap<QString,QString> MuHttpServer::Response::mHeaders |
Additional HTTP headers to attach to the response message.
The key is the name of the header and the value is the header data.
Definition at line 54 of file MuHttpServer.h.
| ResponseCode MuHttpServer::Response::mCode |
The type of response.
This can be the numeric code defined by the HTTP RFCs or a convenience enum value as defined by the EHS library. (for example, HTTPRESPONSE_200_OK)
Definition at line 62 of file MuHttpServer.h.