Http async client. More...
#include <HttpClient.h>
Public Member Functions | |
| Result | get (AsyncEventLoop &loop, StringSpan url) |
Setups this client to execute a GET request on the given url. | |
| StringSpan | getResponse () const |
| Get the response StringSpan sent by the server. | |
| Result | setCustomDebugName (const StringSpan debugName) |
Public Attributes | |
| Delegate< HttpClient & > | callback |
The callback that is called after GET operation succeeded. | |
Http async client.
| Result SC::HttpClient::get | ( | AsyncEventLoop & | loop, |
| StringSpan | url ) |
Setups this client to execute a GET request on the given url.
| loop | The AsyncEventLoop to use for monitoring network packets |
| url | The url to GET |
|
nodiscard |
Get the response StringSpan sent by the server.
| Delegate<HttpClient&> SC::HttpClient::callback |
The callback that is called after GET operation succeeded.