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. More... | |
StringView | getResponse () const |
Get the response StringView sent by the server. More... | |
Result | setCustomDebugName (const StringView debugName) |
Public Attributes | |
Delegate< HttpClient & > | callback |
The callback that is called after GET operation succeeded. More... | |
Http async client.
Result SC::HttpClient::get | ( | AsyncEventLoop & | loop, |
StringView | 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 |
StringView SC::HttpClient::getResponse | ( | ) | const |
Get the response StringView sent by the server.
Delegate<HttpClient&> SC::HttpClient::callback |
The callback that is called after GET
operation succeeded.