MySQL 8.0.40
Source Code Documentation
HttpUri Class Reference

representation of HTTP URI. More...

#include <http_request.h>

Classes

struct  impl
 

Public Member Functions

 HttpUri ()
 
 HttpUri (HttpUri &&)
 
 ~HttpUri ()
 
std::string join () const
 convert URI to string. More...
 
std::string get_scheme () const
 
void set_scheme (const std::string &scheme)
 
std::string get_userinfo () const
 
void set_userinfo (const std::string &userinfo)
 
std::string get_host () const
 
void set_host (const std::string &host)
 
uint16_t get_port () const
 
void set_port (uint16_t port) const
 
std::string get_path () const
 get path part of the URI. More...
 
void set_path (const std::string &path)
 
std::string get_fragment () const
 
void set_fragment (const std::string &fragment)
 
std::string get_query () const
 
void set_query (const std::string &query)
 
 operator bool () const
 check if URI is valid. More...
 

Static Public Member Functions

static std::string decode (const std::string &uri_str, const bool decode_plus)
 create HttpUri from string. More...
 
static HttpUri parse (const std::string &uri_str)
 

Private Member Functions

 HttpUri (std::unique_ptr< impl > &&uri)
 

Private Attributes

std::unique_ptr< implpImpl_
 

Friends

class HttpRequest
 

Detailed Description

representation of HTTP URI.

wraps evhttp_uri and exposes a subset of the libevent function-set

Constructor & Destructor Documentation

◆ HttpUri() [1/3]

HttpUri::HttpUri ( )

◆ HttpUri() [2/3]

HttpUri::HttpUri ( HttpUri &&  )
default

◆ ~HttpUri()

HttpUri::~HttpUri ( )
default

◆ HttpUri() [3/3]

HttpUri::HttpUri ( std::unique_ptr< impl > &&  uri)
private

Member Function Documentation

◆ decode()

std::string HttpUri::decode ( const std::string &  uri_str,
const bool  decode_plus 
)
static

create HttpUri from string.

◆ get_fragment()

std::string HttpUri::get_fragment ( ) const

◆ get_host()

std::string HttpUri::get_host ( ) const

◆ get_path()

std::string HttpUri::get_path ( ) const

get path part of the URI.

◆ get_port()

uint16_t HttpUri::get_port ( ) const

◆ get_query()

std::string HttpUri::get_query ( ) const

◆ get_scheme()

std::string HttpUri::get_scheme ( ) const

◆ get_userinfo()

std::string HttpUri::get_userinfo ( ) const

◆ join()

std::string HttpUri::join ( ) const

convert URI to string.

◆ operator bool()

HttpUri::operator bool ( ) const

check if URI is valid.

◆ parse()

HttpUri HttpUri::parse ( const std::string &  uri_str)
static

◆ set_fragment()

void HttpUri::set_fragment ( const std::string &  fragment)

◆ set_host()

void HttpUri::set_host ( const std::string &  host)

◆ set_path()

void HttpUri::set_path ( const std::string &  path)

◆ set_port()

void HttpUri::set_port ( uint16_t  port) const

◆ set_query()

void HttpUri::set_query ( const std::string &  query)

◆ set_scheme()

void HttpUri::set_scheme ( const std::string &  scheme)

◆ set_userinfo()

void HttpUri::set_userinfo ( const std::string &  userinfo)

Friends And Related Function Documentation

◆ HttpRequest

friend class HttpRequest
friend

Member Data Documentation

◆ pImpl_

std::unique_ptr<impl> HttpUri::pImpl_
private

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