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