uHTTP for C++
uHTTP::URI Class Reference

#include <URI.h>

Inheritance diagram for uHTTP::URI:
uHTTP::URL

Public Member Functions

 URI ()
 
 URI (const std::string &uriStr)
 
bool IsAbsoluteURI ()
 
void setString (const std::string &value)
 
const char * getSting ()
 
void setProtocol (const std::string &value)
 
const char * getProtocol ()
 
bool hasProtocol ()
 
bool isProtocol (const std::string &protocolPrefix)
 
bool isHTTP ()
 
bool isHTTPS ()
 
void setUser (const std::string &value)
 
const char * getUser ()
 
void setPassword (const std::string &value)
 
const char * getPassword ()
 
void setHost (const std::string &value)
 
const char * getHost ()
 
void setPort (int value)
 
int getPort ()
 
void setPath (const std::string &value)
 
const char * getPath ()
 
bool hasPath ()
 
void setQuery (const std::string &value)
 
const char * getQuery ()
 
bool hasQuery ()
 
void setFragment (const std::string &value)
 
const char * getFragment ()
 
bool hasFragment ()
 
bool isValid ()
 
void print ()
 

Static Public Attributes

static const char * HTTP
 
static const char * HTTPS
 
static int HTTP_PORT
 
static int HTTPS_PORT
 
static const char * PROTOCOL_DELIM
 
static const char * USER_DELIM
 
static const char * COLON_DELIM
 
static const char * SLASH_DELIM
 
static const char * SBLACET_DELIM
 
static const char * EBLACET_DELIM
 
static const char * SHARP_DELIM
 
static const char * QUESTION_DELIM
 

Protected Attributes

std::string uriStr
 
std::string protocol
 
std::string user
 
std::string password
 
std::string host
 
int port
 
std::string path
 
std::string query
 
std::string fragment
 

Constructor & Destructor Documentation

◆ URI() [1/2]

uHTTP::URI::URI ( )

◆ URI() [2/2]

uHTTP::URI::URI ( const std::string & uriStr)

Member Function Documentation

◆ getFragment()

const char * uHTTP::URI::getFragment ( )
inline

◆ getHost()

const char * uHTTP::URI::getHost ( )
inline

◆ getPassword()

const char * uHTTP::URI::getPassword ( )
inline

◆ getPath()

const char * uHTTP::URI::getPath ( )
inline

◆ getPort()

int uHTTP::URI::getPort ( )
inline

◆ getProtocol()

const char * uHTTP::URI::getProtocol ( )
inline

◆ getQuery()

const char * uHTTP::URI::getQuery ( )
inline

◆ getSting()

const char * uHTTP::URI::getSting ( )
inline

◆ getUser()

const char * uHTTP::URI::getUser ( )
inline

◆ hasFragment()

bool uHTTP::URI::hasFragment ( )
inline

◆ hasPath()

bool uHTTP::URI::hasPath ( )
inline

◆ hasProtocol()

bool uHTTP::URI::hasProtocol ( )
inline

◆ hasQuery()

bool uHTTP::URI::hasQuery ( )
inline

◆ IsAbsoluteURI()

bool uHTTP::URI::IsAbsoluteURI ( )

◆ isHTTP()

bool uHTTP::URI::isHTTP ( )
inline

◆ isHTTPS()

bool uHTTP::URI::isHTTPS ( )
inline

◆ isProtocol()

bool uHTTP::URI::isProtocol ( const std::string & protocolPrefix)
inline

◆ isValid()

bool uHTTP::URI::isValid ( )

◆ print()

void uHTTP::URI::print ( )

◆ setFragment()

void uHTTP::URI::setFragment ( const std::string & value)
inline

◆ setHost()

void uHTTP::URI::setHost ( const std::string & value)
inline

◆ setPassword()

void uHTTP::URI::setPassword ( const std::string & value)
inline

◆ setPath()

void uHTTP::URI::setPath ( const std::string & value)
inline

◆ setPort()

void uHTTP::URI::setPort ( int value)
inline

◆ setProtocol()

void uHTTP::URI::setProtocol ( const std::string & value)
inline

◆ setQuery()

void uHTTP::URI::setQuery ( const std::string & value)
inline

◆ setString()

void uHTTP::URI::setString ( const std::string & value)

◆ setUser()

void uHTTP::URI::setUser ( const std::string & value)
inline

Field Documentation

◆ COLON_DELIM

const char* uHTTP::URI::COLON_DELIM
static

◆ EBLACET_DELIM

const char* uHTTP::URI::EBLACET_DELIM
static

◆ fragment

std::string uHTTP::URI::fragment
protected

◆ host

std::string uHTTP::URI::host
protected

◆ HTTP

const char* uHTTP::URI::HTTP
static

◆ HTTP_PORT

int uHTTP::URI::HTTP_PORT
static

◆ HTTPS

const char* uHTTP::URI::HTTPS
static

◆ HTTPS_PORT

int uHTTP::URI::HTTPS_PORT
static

◆ password

std::string uHTTP::URI::password
protected

◆ path

std::string uHTTP::URI::path
protected

◆ port

int uHTTP::URI::port
protected

◆ protocol

std::string uHTTP::URI::protocol
protected

◆ PROTOCOL_DELIM

const char* uHTTP::URI::PROTOCOL_DELIM
static

◆ query

std::string uHTTP::URI::query
protected

◆ QUESTION_DELIM

const char* uHTTP::URI::QUESTION_DELIM
static

◆ SBLACET_DELIM

const char* uHTTP::URI::SBLACET_DELIM
static

◆ SHARP_DELIM

const char* uHTTP::URI::SHARP_DELIM
static

◆ SLASH_DELIM

const char* uHTTP::URI::SLASH_DELIM
static

◆ uriStr

std::string uHTTP::URI::uriStr
protected

◆ user

std::string uHTTP::URI::user
protected

◆ USER_DELIM

const char* uHTTP::URI::USER_DELIM
static

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