#include <LibcurlURL.h>
Libcurl-based implementation of tenduke::net::URL.
|
| | LibcurlURL (bool lenient=true) |
| | Constructs new instance.
|
| |
| std::multimap< std::string, std::string > | getQueryParameters () const override |
| | Returns the query parameters, URL-decoded.
|
| |
| std::string | getPath () const override |
| | Returns path, URL-decoded.
|
| |
| void | setPort (std::uint16_t port) override |
| | Sets port.
|
| |
| std::string | toString () const override |
| | Returns the URL as string.
|
| |
| virtual void | parse (const std::string &url) |
| | Parses given URL into this instance.
|
| |
◆ LibcurlURL()
| tenduke::net::curl::LibcurlURL::LibcurlURL |
( |
bool | lenient = true | ) |
|
|
explicit |
Constructs new instance.
- Parameters
-
| lenient | accept URL-scheme not recognized by libcurl. |
- Exceptions
-
| std::bad_alloc | if unable to initialize libcurl |
◆ getPath()
| std::string tenduke::net::curl::LibcurlURL::getPath |
( |
| ) |
const |
|
overridevirtual |
◆ getQueryParameters()
| std::multimap< std::string, std::string > tenduke::net::curl::LibcurlURL::getQueryParameters |
( |
| ) |
const |
|
overridevirtual |
Returns the query parameters, URL-decoded.
- Returns
- -
- Exceptions
-
Implements tenduke::net::URL.
◆ parse()
| void tenduke::net::curl::LibcurlURL::parse |
( |
const std::string & | url | ) |
|
|
virtual |
Parses given URL into this instance.
- Parameters
-
- Exceptions
-
◆ setPort()
| void tenduke::net::curl::LibcurlURL::setPort |
( |
std::uint16_t | port | ) |
|
|
overridevirtual |
◆ toString()
| std::string tenduke::net::curl::LibcurlURL::toString |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files:
- core/default-services/src/net/LibcurlURL.h
- core/default-services/src/net/LibcurlURL.cpp