WPILibC++ 2024.3.2
wpi::UrlParser Class Reference

Parses a URL into its constiuent components. More...

#include <wpinet/UrlParser.h>

Public Member Functions

 UrlParser (std::string_view in, bool isConnect)
 Parse a URL. More...
 
bool IsValid () const
 Determine if the URL is valid (e.g. More...
 
bool HasSchema () const
 
bool HasHost () const
 
bool HasPort () const
 
bool HasPath () const
 
bool HasQuery () const
 
bool HasFragment () const
 
bool HasUserInfo () const
 
std::string_view GetSchema () const
 
std::string_view GetHost () const
 
unsigned int GetPort () const
 
std::string_view GetPath () const
 
std::string_view GetQuery () const
 
std::string_view GetFragment () const
 
std::string_view GetUserInfo () const
 

Detailed Description

Parses a URL into its constiuent components.

schema://userinfo@host:port/the/path?query#fragment

Constructor & Destructor Documentation

◆ UrlParser()

wpi::UrlParser::UrlParser ( std::string_view  in,
bool  isConnect 
)
inline

Parse a URL.

Parameters
ininput
isConnect

Member Function Documentation

◆ GetFragment()

std::string_view wpi::UrlParser::GetFragment ( ) const
inline

◆ GetHost()

std::string_view wpi::UrlParser::GetHost ( ) const
inline

◆ GetPath()

std::string_view wpi::UrlParser::GetPath ( ) const
inline

◆ GetPort()

unsigned int wpi::UrlParser::GetPort ( ) const
inline

◆ GetQuery()

std::string_view wpi::UrlParser::GetQuery ( ) const
inline

◆ GetSchema()

std::string_view wpi::UrlParser::GetSchema ( ) const
inline

◆ GetUserInfo()

std::string_view wpi::UrlParser::GetUserInfo ( ) const
inline

◆ HasFragment()

bool wpi::UrlParser::HasFragment ( ) const
inline

◆ HasHost()

bool wpi::UrlParser::HasHost ( ) const
inline

◆ HasPath()

bool wpi::UrlParser::HasPath ( ) const
inline

◆ HasPort()

bool wpi::UrlParser::HasPort ( ) const
inline

◆ HasQuery()

bool wpi::UrlParser::HasQuery ( ) const
inline

◆ HasSchema()

bool wpi::UrlParser::HasSchema ( ) const
inline

◆ HasUserInfo()

bool wpi::UrlParser::HasUserInfo ( ) const
inline

◆ IsValid()

bool wpi::UrlParser::IsValid ( ) const
inline

Determine if the URL is valid (e.g.

the parse was successful).


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