WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::UrlParser Class Reference

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

#include <UrlParser.h>

Public Member Functions

 UrlParser (StringRef 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
 
StringRef GetSchema () const
 
StringRef GetHost () const
 
unsigned int GetPort () const
 
StringRef GetPath () const
 
StringRef GetQuery () const
 
StringRef GetFragment () const
 
StringRef GetUserInfo () const
 

Detailed Description

Parses a URL into its constiuent components.

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

Constructor & Destructor Documentation

wpi::UrlParser::UrlParser ( StringRef  in,
bool  isConnect 
)
inline

Parse a URL.

Parameters
ininput
isConnect

Member Function Documentation

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: