A remote endpoint for HTTP/HTTPS resources.
More...
#include <remote_handle.hpp>
|
| static bool | is_url_valid (std::string const &url) noexcept |
| | Whether the given URL is valid for HTTP/HTTPS endpoints. More...
|
| |
A remote endpoint for HTTP/HTTPS resources.
This endpoint is for accessing files via standard HTTP/HTTPS protocols without any specialized authentication.
Definition at line 119 of file remote_handle.hpp.
◆ HttpEndpoint()
| kvikio::HttpEndpoint::HttpEndpoint |
( |
std::string |
url | ) |
|
Create an http endpoint from a url.
- Parameters
-
| url | The full http url to the remote file. |
◆ get_file_size()
| std::size_t kvikio::HttpEndpoint::get_file_size |
( |
| ) |
|
|
overridevirtual |
◆ is_url_valid()
| static bool kvikio::HttpEndpoint::is_url_valid |
( |
std::string const & |
url | ) |
|
|
staticnoexcept |
Whether the given URL is valid for HTTP/HTTPS endpoints.
- Parameters
-
- Returns
- Boolean answer.
◆ setopt()
| void kvikio::HttpEndpoint::setopt |
( |
CurlHandle & |
curl | ) |
|
|
overridevirtual |
Set needed connection options on a curl handle.
Subsequently, a call to curl.perform() should connect to the endpoint.
- Parameters
-
Implements kvikio::RemoteEndpoint.
◆ str()
| std::string kvikio::HttpEndpoint::str |
( |
| ) |
const |
|
overridevirtual |
Get a description of this remote point instance.
- Returns
- A string description.
Implements kvikio::RemoteEndpoint.
The documentation for this class was generated from the following file: