WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::net::UrlParser Class Reference

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

#include <wpi/net/UrlParser.hpp>

Public Member Functions

 UrlParser (std::string_view in, bool isConnect)
 Parse a URL.
bool IsValid () const
 Determine if the URL is valid (e.g.
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 constituent components.

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

Constructor & Destructor Documentation

◆ UrlParser()

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

Parse a URL.

Parameters
ininput
isConnect

Member Function Documentation

◆ GetFragment()

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

◆ GetHost()

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

◆ GetPath()

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

◆ GetPort()

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

◆ GetQuery()

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

◆ GetSchema()

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

◆ GetUserInfo()

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

◆ HasFragment()

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

◆ HasHost()

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

◆ HasPath()

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

◆ HasPort()

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

◆ HasQuery()

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

◆ HasSchema()

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

◆ HasUserInfo()

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

◆ IsValid()

bool wpi::net::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: