virthttp  0.0
libvirt http interface
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TargetParser Class Reference

#include <urlparser.hpp>

Inheritance diagram for TargetParser:
URLParser

Public Member Functions

constexpr TargetParser ()=default
 
 TargetParser (std::string_view url)
 
void setURL (const char *v)
 
void setURL (std::string_view sv)
 
constexpr std::string_view getPath () const noexcept
 
constexpr std::string_view getURL () const noexcept
 
constexpr const flatmap< std::string_view, std::string_view > & getQueries () const noexcept
 
constexpr const std::vector< std::string_view > & getPathParts () const noexcept
 
constexpr std::string_view operator[] (std::string_view key) const noexcept
 
constexpr std::optional< bool > getBool (std::string_view key) const noexcept
 

Protected Member Functions

constexpr std::string_view match () noexcept
 
void parse_queries (std::string_view sv_query) noexcept
 
void parse () noexcept
 

Protected Attributes

std::string_view url {}
 
std::string_view path {}
 
std::vector< std::string_view > path_parts = {}
 
flatmap< std::string_view, std::string_view > queries = {}
 

Constructor & Destructor Documentation

constexpr TargetParser::TargetParser ( )
default
TargetParser::TargetParser ( std::string_view  url)
inlineexplicit

Member Function Documentation

constexpr std::optional<bool> TargetParser::getBool ( std::string_view  key) const
inlinenoexcept
constexpr std::string_view TargetParser::getPath ( ) const
inlinenoexcept
constexpr const std::vector<std::string_view>& TargetParser::getPathParts ( ) const
inlinenoexcept
constexpr const flatmap<std::string_view, std::string_view>& TargetParser::getQueries ( ) const
inlinenoexcept
constexpr std::string_view TargetParser::getURL ( ) const
inlinenoexcept
constexpr std::string_view TargetParser::match ( )
inlineprotectednoexcept
constexpr std::string_view TargetParser::operator[] ( std::string_view  key) const
inlinenoexcept
void TargetParser::parse ( )
inlineprotectednoexcept
void TargetParser::parse_queries ( std::string_view  sv_query)
inlineprotectednoexcept
void TargetParser::setURL ( const char *  v)
inline
void TargetParser::setURL ( std::string_view  sv)
inline

Member Data Documentation

std::string_view TargetParser::path {}
protected
std::vector<std::string_view> TargetParser::path_parts = {}
protected
flatmap<std::string_view, std::string_view> TargetParser::queries = {}
protected
std::string_view TargetParser::url {}
protected

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