#include <gpudb/Http.hpp>
|
| 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. More...
|
|
| operator std::string () const |
|
|
static const std::string | HTTP |
|
static const std::string | HTTPS |
|
Definition at line 14 of file Http.hpp.
◆ 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() |
|
) |
| |
◆ 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 |
◆ HTTP
const std::string gpudb::HttpUrl::HTTP |
|
static |
◆ HTTPS
const std::string gpudb::HttpUrl::HTTPS |
|
static |
The documentation for this class was generated from the following file: