Listener receiving response notifications during HttpClientOperation::poll. More...
#include <HttpClient.h>
Public Member Functions | |
| 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.
|
inlinevirtual |
Called when the request fails.
| error | Operation failure |
|
inlinevirtual |
Called for each response body chunk delivered by poll()
| data | Body bytes valid for the duration of the callback |
|
inlinevirtual |
Called when the response body completed successfully.
|
inlinevirtual |
Called once the response status code and headers are available.
| response | Parsed response metadata owned by the current operation |