Apache Mesos
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
process::http::URL Struct Reference

#include <http.hpp>

Public Member Functions

 URL ()=default
 
 URL (const std::string &_scheme, const std::string &_domain, const uint16_t _port=80, const std::string &_path="/", const hashmap< std::string, std::string > &_query=(hashmap< std::string, std::string >()), const Option< std::string > &_fragment=None())
 
 URL (const std::string &_scheme, const net::IP &_ip, const uint16_t _port=80, const std::string &_path="/", const hashmap< std::string, std::string > &_query=(hashmap< std::string, std::string >()), const Option< std::string > &_fragment=None())
 
bool isAbsolute () const
 Returns whether the URL is absolute. More...
 

Static Public Member Functions

static Try< URLparse (const std::string &urlString)
 

Public Attributes

Option< std::string > scheme
 
Option< std::string > domain
 
Option< net::IPip
 
Option< uint16_t > port
 
std::string path
 
hashmap< std::string, std::string > query
 
Option< std::string > fragment
 

Constructor & Destructor Documentation

process::http::URL::URL ( )
default
process::http::URL::URL ( const std::string &  _scheme,
const std::string &  _domain,
const uint16_t  _port = 80,
const std::string &  _path = "/",
const hashmap< std::string, std::string > &  _query = (hashmap<std::string, std::string>()),
const Option< std::string > &  _fragment = None() 
)
inline
process::http::URL::URL ( const std::string &  _scheme,
const net::IP _ip,
const uint16_t  _port = 80,
const std::string &  _path = "/",
const hashmap< std::string, std::string > &  _query = (hashmap<std::string, std::string>()),
const Option< std::string > &  _fragment = None() 
)
inline

Member Function Documentation

bool process::http::URL::isAbsolute ( ) const

Returns whether the URL is absolute.

See https://tools.ietf.org/html/rfc3986#section-4.3 for details.

static Try<URL> process::http::URL::parse ( const std::string &  urlString)
static

Member Data Documentation

Option<std::string> process::http::URL::domain
Option<std::string> process::http::URL::fragment
Option<net::IP> process::http::URL::ip
std::string process::http::URL::path
Option<uint16_t> process::http::URL::port
hashmap<std::string, std::string> process::http::URL::query
Option<std::string> process::http::URL::scheme

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