|
10Duke Enterprise C++ SDK
|
Generic networking support.
Services for generic networking support.
Namespaces | |
| namespace | curl |
| libcurl based implementation of generic network services. | |
Classes | |
| class | AbstractURLCodec |
| Base implementation of tenduke::net::URLCodec which provides base functionality and can be subclassed to provide specific implementations for the encoding / decoding of URL components. More... | |
| class | AbstractURLParser |
| Base class for URL parsing. More... | |
| class | AbstractURLs |
| Abstract base implementation of tenduke::net::URLs. More... | |
| class | MalformedURLException |
| Thrown when URL is malformed. More... | |
| class | NetworkingException |
| Generic networking exception. More... | |
| class | RequestTimedOut |
| A tenduke::net::NetworkingException thrown when network request timed out. More... | |
| class | SimpleURLService |
| class | UnknownHostException |
| A tenduke::net::NetworkingException thrown when the host is not found. More... | |
| class | URL |
| Represents URL. More... | |
| class | URLBuilder |
| Very simple URL-builder. More... | |
| class | URLCodec |
| URL-related coding / encoding functionality. More... | |
| class | URLDecoder |
| Service to URL-decode a string. More... | |
| class | URLEncoder |
| Service to URL-encode a string. More... | |
| class | URLException |
| A tenduke::net::NetworkingException thrown when various URL-related errors occur. More... | |
| class | URLParser |
| A service to parse URLs from strings. More... | |
| class | URLs |
| URL-related functionality. More... | |
Functions | |
| std::string | normalizeEncodedURLPath (const std::string &encodedPath) |
| Normalizes an already encoded URL path so that it can be written to a URL as is, without changing its meaning. | |
| void | validateHostname (const std::string &hostname) |
| Checks that hostname is a syntactically valid URL host, which can be written to a URL as is. | |
| std::string tenduke::net::normalizeEncodedURLPath | ( | const std::string & | encodedPath | ) |
Normalizes an already encoded URL path so that it can be written to a URL as is, without changing its meaning.
Keeps (see https://www.rfc-editor.org/rfc/rfc3986#section-3.3):
Percent-encodes all other characters, e.g. whitespace, control characters, non-ASCII (UTF-8) bytes, ", <, >, ?, #, and % which does not start a percent-encoded octet.
For a valid encoded path the result is the path unchanged.
| encodedPath | the encoded path |
| void tenduke::net::validateHostname | ( | const std::string & | hostname | ) |
Checks that hostname is a syntactically valid URL host, which can be written to a URL as is.
Accepts (see https://www.rfc-editor.org/rfc/rfc3986#section-3.2.2):
Rejects all other characters, e.g. quotes, whitespace, control characters, /, \\endiskip, @, ?, #, <, > and : outside of brackets.
| hostname | - |
| tenduke::net::MalformedURLException | if the hostname is not valid |