#include <gpudb/Http.hpp>
Public Member Functions | |
| HttpUrl () | |
| HttpUrl (const char *url) | |
| HttpUrl (const std::string &url) | |
| HttpUrl (const std::string &protocol, const std::string &host, uint16_t port, const std::string &path, const std::string &query=std::string()) | |
| HttpUrl (const HttpUrl &baseUrl, const std::string &path, const std::string &query=std::string()) | |
| const std::string & | getUrl () const |
| const std::string & | getProtocol () const |
| bool | isSecure () const |
| const std::string & | getHost () const |
| uint16_t | getPort () const |
| const std::string & | getPath () const |
| const std::string & | getQuery () const |
| std::string | getAppendedUrl (const std::string &endpoint) const |
| Returns a string with the passed in endpoint appended to this URL. | |
| operator std::string () const | |
Static Public Attributes | |
| static const std::string | HTTP |
| static const std::string | HTTPS |
Friends | |
| bool | operator== (const HttpUrl &lhs, const HttpUrl &rhs) |
| bool | operator!= (const HttpUrl &lhs, const HttpUrl &rhs) |
Detailed Description
Constructor & Destructor Documentation
◆ HttpUrl() [1/5]
| gpudb::HttpUrl::HttpUrl | ( | ) |
◆ HttpUrl() [2/5]
| gpudb::HttpUrl::HttpUrl | ( | const char * | url | ) |
◆ HttpUrl() [3/5]
| gpudb::HttpUrl::HttpUrl | ( | const std::string & | url | ) |
◆ HttpUrl() [4/5]
| gpudb::HttpUrl::HttpUrl | ( | const std::string & | protocol, |
| const std::string & | host, | ||
| uint16_t | port, | ||
| const std::string & | path, | ||
| const std::string & | query = std::string() ) |
◆ HttpUrl() [5/5]
| gpudb::HttpUrl::HttpUrl | ( | const HttpUrl & | baseUrl, |
| const std::string & | path, | ||
| const std::string & | query = std::string() ) |
Member Function Documentation
◆ getAppendedUrl()
| std::string gpudb::HttpUrl::getAppendedUrl | ( | const std::string & | endpoint | ) | const |
Returns a string with the passed in endpoint appended to this URL.
Takes care of the ’/’ separating this URL and the endpoint (i.e. adds one if needed or gets rid of one if two are presetnt).
◆ getHost()
| const std::string & gpudb::HttpUrl::getHost | ( | ) | const |
◆ getPath()
| const std::string & gpudb::HttpUrl::getPath | ( | ) | const |
◆ getPort()
| uint16_t gpudb::HttpUrl::getPort | ( | ) | const |
◆ getProtocol()
| const std::string & gpudb::HttpUrl::getProtocol | ( | ) | const |
◆ getQuery()
| const std::string & gpudb::HttpUrl::getQuery | ( | ) | const |
◆ getUrl()
| const std::string & gpudb::HttpUrl::getUrl | ( | ) | const |
◆ isSecure()
| bool gpudb::HttpUrl::isSecure | ( | ) | const |
◆ operator std::string()
| gpudb::HttpUrl::operator std::string | ( | ) | const |
Friends And Related Symbol Documentation
◆ operator!=
◆ operator==
Member Data Documentation
◆ HTTP
◆ HTTPS
The documentation for this class was generated from the following file:
- gpudb/Http.hpp