GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 

Friends

bool operator== (const HttpUrl &lhs, const HttpUrl &rhs)
 
bool operator!= (const HttpUrl &lhs, const HttpUrl &rhs)
 

Detailed Description

Definition at line 14 of file Http.hpp.

Constructor & Destructor Documentation

gpudb::HttpUrl::HttpUrl ( )
gpudb::HttpUrl::HttpUrl ( const char *  url)
gpudb::HttpUrl::HttpUrl ( const std::string &  url)
gpudb::HttpUrl::HttpUrl ( const std::string &  protocol,
const std::string &  host,
uint16_t  port,
const std::string &  path,
const std::string &  query = std::string() 
)
gpudb::HttpUrl::HttpUrl ( const HttpUrl baseUrl,
const std::string &  path,
const std::string &  query = std::string() 
)

Member Function Documentation

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).

const std::string& gpudb::HttpUrl::getHost ( ) const
const std::string& gpudb::HttpUrl::getPath ( ) const
uint16_t gpudb::HttpUrl::getPort ( ) const
const std::string& gpudb::HttpUrl::getProtocol ( ) const
const std::string& gpudb::HttpUrl::getQuery ( ) const
const std::string& gpudb::HttpUrl::getUrl ( ) const
bool gpudb::HttpUrl::isSecure ( ) const
gpudb::HttpUrl::operator std::string ( ) const

Friends And Related Function Documentation

bool operator!= ( const HttpUrl lhs,
const HttpUrl rhs 
)
friend
bool operator== ( const HttpUrl lhs,
const HttpUrl rhs 
)
friend

Member Data Documentation

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

Definition at line 17 of file Http.hpp.

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: