GPUdb C++ API  Version 6.2.0.3
gpudb::HttpUrl Class Reference

#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. More...
 
 operator std::string () const
 

Static Public Attributes

static const std::string HTTP
 
static const std::string HTTPS
 

Detailed Description

Definition at line 14 of file Http.hpp.

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

Member Data Documentation

◆ HTTP

const std::string gpudb::HttpUrl::HTTP
static

Definition at line 17 of file Http.hpp.

◆ HTTPS

const std::string gpudb::HttpUrl::HTTPS
static

Definition at line 18 of file Http.hpp.


The documentation for this class was generated from the following file: