An event describing a server request.
More...
#include <ServerEvents.h>
|
Poco::Net::HTTPServerRequest & | _request |
| A reference to the server request.
|
|
Poco::Net::HTTPServerResponse & | _response |
| Callbacks are permitted to set the response. More...
|
|
AbstractSession & | _session |
| The session associated with the event.
|
|
An event describing a server request.
◆ ServerEventArgs()
ofx::HTTP::ServerEventArgs::ServerEventArgs |
( |
Poco::Net::HTTPServerRequest & |
request, |
|
|
Poco::Net::HTTPServerResponse & |
response, |
|
|
AbstractSession & |
session |
|
) |
| |
|
inline |
Construct the ServerEventArgs.
- Parameters
-
request | the Poco::Net::HTTPServerRequest. |
response | the Poco::Net::HTTPServerResponse. |
session | The AbstractSession associated with this event. |
◆ request()
Poco::Net::HTTPServerRequest& ofx::HTTP::ServerEventArgs::request |
( |
| ) |
|
|
inline |
Get the Poco::Net::HTTPServerRequest.
- Returns
- the Poco::Net::HTTPServerRequest.
◆ response()
Poco::Net::HTTPServerResponse& ofx::HTTP::ServerEventArgs::response |
( |
| ) |
|
|
inline |
Get the Poco::Net::HTTPServerResponse.
- Returns
- the Poco::Net::HTTPServerResponse.
◆ session()
Get the session associated with this event.
- Returns
- the session associated with this event.
◆ _response
Poco::Net::HTTPServerResponse& ofx::HTTP::ServerEventArgs::_response |
|
protected |
Callbacks are permitted to set the response.
- Warning
- Before working with the response, the callback must check the HTTPServerResponse::sent() method to ensure that the response stream is still available available.
The documentation for this class was generated from the following file: