#include <tsReactiveWebHandlerInterface.h>
Interface class for WebRequest Reactor handlers. All methods are empty by default. An application may implement the required ones only.
◆ handleWebOpen()
| virtual void ts::ReactiveWebHandlerInterface::handleWebOpen |
( |
ReactiveWebRequest & | request, |
|
|
int | error_code, |
|
|
const ObjectPtr & | user_data ) |
|
virtual |
Handle the completion of a Web request open operation.
- Parameters
-
| [in,out] | request | Web request for which the handler is invoked. |
| [in] | error_code | System-specific error code, SYS_SUCCESS on success. |
| [in] | user_data | The user-data shared pointer which was passed to startOpen(). |
◆ handleWebReceive()
Handle the reception of data from a Web request.
- Parameters
-
| [in,out] | request | Web request for which the handler is invoked. |
| [in] | data | Safe pointer to the received data. Can be null in case of error. The handler may safely copy the shared pointer, the pointed data will not be modified by the ReactiveWebRequest. |
| [in] | error_code | System-specific error code, including:
- SYS_SUCCESS on success.
- SYS_CANCELED when the transfer was aborted by the application.
- SYS_EOF at end of file or if the other end of a communication link has disconnected,
- SYS_ERROR in case of unknown error.
|
| [in] | user_data | The user-data shared pointer which was passed to startOpen(). |
The documentation for this class was generated from the following file: