Listener receiving response notifications during HttpClientOperation::poll.
More...
#include <HttpClient.h>
|
| virtual void | onResponseHead (HttpClientResponse &response) |
| | Called once the response status code and headers are available.
|
| |
| virtual void | onResponseBody (Span< const char > data) |
| | Called for each response body chunk delivered by poll()
|
| |
| virtual void | onResponseComplete () |
| | Called when the response body completed successfully.
|
| |
| virtual void | onError (Result error) |
| | Called when the request fails.
|
| |
Listener receiving response notifications during HttpClientOperation::poll.
◆ onError()
| virtual void SC::HttpClientOperationListener::onError |
( |
Result | error | ) |
|
|
inlinevirtual |
Called when the request fails.
- Parameters
-
◆ onResponseBody()
| virtual void SC::HttpClientOperationListener::onResponseBody |
( |
Span< const char > | data | ) |
|
|
inlinevirtual |
Called for each response body chunk delivered by poll()
- Parameters
-
| data | Body bytes valid for the duration of the callback |
◆ onResponseComplete()
| virtual void SC::HttpClientOperationListener::onResponseComplete |
( |
| ) |
|
|
inlinevirtual |
Called when the response body completed successfully.
◆ onResponseHead()
| virtual void SC::HttpClientOperationListener::onResponseHead |
( |
HttpClientResponse & | response | ) |
|
|
inlinevirtual |
Called once the response status code and headers are available.
- Parameters
-
| response | Parsed response metadata owned by the current operation |
The documentation for this struct was generated from the following file: