Public Member Functions | |
ClientStream (std::string url) | |
ClientStream (ClientStream &&other) noexcept | |
auto | operator= (ClientStream &&other) noexcept -> ClientStream & |
~ClientStream () | |
Destruct an instance of this class. | |
auto | method (const Method method) noexcept -> void |
auto | method () const noexcept -> Method |
auto | header (std::string_view key, std::string_view value) -> void |
auto | header (std::string_view key, int value) -> void |
auto | url () const -> std::string_view |
This class is used to perform a streaming HTTP request.
sourcemeta::hydra::http::ClientStream::ClientStream | ( | std::string | url | ) |
Construct a streaming HTTP request to a given URL. For example:
|
noexcept |
Move an instance of this class. For example:
auto sourcemeta::hydra::http::ClientStream::header | ( | std::string_view | key, |
int | value | ||
) | -> void |
Set an HTTP request header whose value is an integer. For example:
auto sourcemeta::hydra::http::ClientStream::header | ( | std::string_view | key, |
std::string_view | value | ||
) | -> void |
Set an HTTP request header. For example:
|
noexcept |
Retrieve the HTTP method that the request will be sent with. For example:
|
noexcept |
Specify the HTTP method to use for the request. If not set, it defauls to GET
. For example:
|
noexcept |
Move an instance of this class. For example:
auto sourcemeta::hydra::http::ClientStream::url | ( | ) | const -> std::string_view |
Retrieve the URL that the request will be sent to. For example: