proxygen
|
#include <URL.h>
Public Member Functions | |
URL (const std::string &url="") noexcept | |
URL (const std::string scheme, const std::string host, uint16_t port=0, const std::string path="", const std::string query="", const std::string fragment="") noexcept | |
bool | isValid () const noexcept |
const std::string & | getUrl () const noexcept |
uint16_t | getPort () const noexcept |
const std::string & | getScheme () const noexcept |
bool | isSecure () const noexcept |
bool | hasHost () const noexcept |
const std::string & | getHost () const noexcept |
std::string | getHostAndPort () const noexcept |
const std::string & | getPath () const noexcept |
const std::string & | getQuery () const noexcept |
const std::string & | getFragment () const noexcept |
std::string | makeRelativeURL () const noexcept |
Static Public Member Functions | |
static std::string | createUrl (const std::string &scheme, const std::string &hostAndPort, const std::string &path, const std::string &query, const std::string &fragment) noexcept |
Private Attributes | |
std::string | scheme_ |
std::string | host_ |
uint16_t | port_ |
std::string | path_ |
std::string | query_ |
std::string | fragment_ |
std::string | url_ |
bool | valid_ {false} |
Friends | |
bool | operator== (const URL &lhs, const URL &rhs) |
bool | operator!= (const URL &lhs, const URL &rhs) |
|
inlineexplicitnoexcept |
Definition at line 24 of file URL.h.
References proxygen::ParseURL::fragment(), fragment_, host_, proxygen::ParseURL::hostNoBrackets(), isSecure(), proxygen::ParseURL::path(), path_, proxygen::ParseURL::port(), port_, proxygen::ParseURL::query(), query_, proxygen::ParseURL::scheme(), scheme_, folly::Range< Iter >::str(), folly::pushmi::operators::transform, proxygen::ParseURL::url(), url_, and valid_.
|
inlinenoexcept |
Definition at line 68 of file URL.h.
References isSecure(), port_, folly::pushmi::operators::transform, and valid_.
|
inlinestaticnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 118 of file URL.h.
References host_.
Referenced by CurlService::CurlClient::getServerName(), and main().
|
inlinenoexcept |
Definition at line 122 of file URL.h.
Referenced by CurlService::CurlClient::connectError(), and CurlService::CurlClient::sendRequest().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 98 of file URL.h.
References url_.
Referenced by CurlService::CurlClient::CurlClient(), and CurlService::CurlClient::sendRequest().
|
inlinenoexcept |
Definition at line 110 of file URL.h.
References scheme_.
Referenced by CurlService::CurlClient::connectSuccess(), main(), CurlService::CurlClient::sendRequest(), and URL().
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
Definition at line 166 of file URL.h.
Referenced by getFragment(), makeRelativeURL(), and URL().
|
private |
|
private |
Definition at line 164 of file URL.h.
Referenced by getPath(), makeRelativeURL(), and URL().
|
private |
Definition at line 163 of file URL.h.
Referenced by getHostAndPort(), getPort(), and URL().
|
private |
Definition at line 165 of file URL.h.
Referenced by getQuery(), makeRelativeURL(), and URL().
|
private |
Definition at line 161 of file URL.h.
Referenced by getScheme(), isSecure(), and URL().
|
private |
|
private |