Class to handle non-image IIP responses including errors.
More...
#include <IIPResponse.h>
Class to handle non-image IIP responses including errors.
void IIPResponse::addResponse |
( |
const std::string & |
r | ) |
|
Add a response string.
- Parameters
-
void IIPResponse::addResponse |
( |
const char * |
c | ) |
|
Add a response string.
- Parameters
-
void IIPResponse::addResponse |
( |
const char * |
c, |
|
|
int |
a |
|
) |
| |
Add a response string.
- Parameters
-
c | response string |
a | integer value |
void IIPResponse::addResponse |
( |
std::string |
c, |
|
|
const char * |
a |
|
) |
| |
Add a response string.
- Parameters
-
c | response string |
a | string reply |
void IIPResponse::addResponse |
( |
const char * |
c, |
|
|
int |
a, |
|
|
int |
b |
|
) |
| |
Add a response string.
- Parameters
-
c | response string |
a | integer value |
b | another integer value |
std::string IIPResponse::getAdvert |
( |
const std::string & |
version | ) |
|
Display our advertising banner ;-)
- Parameters
-
void IIPResponse::setError |
( |
const std::string & |
code, |
|
|
const std::string & |
arg |
|
) |
| |
Set an error.
- Parameters
-
code | error code |
arg | the argument supplied by the client |
void IIPResponse::setLastModified |
( |
const std::string & |
m | ) |
|
|
inline |
Set the Last Modified header.
- Parameters
-
m | Last modifed date as a HTTP RFC 1123 formatted timestamp |
void IIPResponse::setProtocol |
( |
const std::string & |
p | ) |
|
|
inline |
Set the IIP protocol version.
- Parameters
-
The documentation for this class was generated from the following file: