This class represents what is sent back to the client.
More...
#include <ehstypes.h>
|
class | EHSConnection |
|
class | EHSServer |
|
This class represents what is sent back to the client.
It contains the actual body only. Any HTTP specific additions like headers or the response code are handled in the drived class HttpResponse.
- Examples:
- ehs_wsgate.cpp.
Definition at line 86 of file ehstypes.h.
◆ GenericResponse()
Constructs a new instance.
- Parameters
-
inResponseId | A unique Id (normally derived from the corresponding request Id). |
ipoEHSConnection | The connection, on which this response should be sent. |
Definition at line 97 of file ehstypes.h.
◆ EnableIdleTimeout()
void EnableIdleTimeout |
( |
bool |
enable = true | ) |
|
Enable/Disable idle-timeout handling for the current connection.
- Parameters
-
enable | If true, idle-timeout handling is enabled, otherwise the socket may stay open forever. When creating an EHSConnection, this is initially enabled. |
◆ EnableKeepAlive()
void EnableKeepAlive |
( |
bool |
enable = true | ) |
|
Enable/Disable TCP keepalive on the underlying socket of the current connection.
This enables detection of "dead" sockets, even when idle-timeout handling is disabled.
- Parameters
-
enable | If true, enable TCP keepalive. When creating an EHSConnection, this is initially disabled. |
◆ GetBody()
◆ GetConnection()
◆ SetBody()
void SetBody |
( |
const char * |
ipsBody, |
|
|
size_t |
inBodyLength |
|
) |
| |
|
inline |
Sets the body of this instance.
- Parameters
-
ipsBody | The content to set. |
inBodyLength | The length of the body. |
Definition at line 108 of file ehstypes.h.
The documentation for this class was generated from the following file: