WPILibC++ 2024.3.2
wpi::HttpPathRef Class Reference

Proxy reference object for a portion of a HttpPath. More...

#include <wpinet/HttpUtil.h>

Public Member Functions

 HttpPathRef ()=default
 
 HttpPathRef (const HttpPath &path, size_t start=0)
 
 operator bool () const
 
bool empty () const
 
size_t size () const
 
bool equals (std::initializer_list< std::string_view > match) const
 
bool equals (std::span< const std::string_view > match) const
 
bool equals (std::string_view match) const
 
bool equals (size_t start, std::initializer_list< std::string_view > match) const
 
bool equals (size_t start, std::span< const std::string_view > match) const
 
bool equals (size_t start, std::string_view match) const
 
bool startswith (std::initializer_list< std::string_view > match) const
 
bool startswith (std::span< const std::string_view > match) const
 
bool startswith (std::string_view match) const
 
bool startswith (size_t start, std::initializer_list< std::string_view > match) const
 
bool startswith (size_t start, std::span< const std::string_view > match) const
 
bool startswith (size_t start, std::string_view match) const
 
std::string_view operator[] (size_t n) const
 
HttpPathRef drop_front (size_t n) const
 

Detailed Description

Proxy reference object for a portion of a HttpPath.

Constructor & Destructor Documentation

◆ HttpPathRef() [1/2]

wpi::HttpPathRef::HttpPathRef ( )
default

◆ HttpPathRef() [2/2]

wpi::HttpPathRef::HttpPathRef ( const HttpPath path,
size_t  start = 0 
)
inline

Member Function Documentation

◆ drop_front()

HttpPathRef wpi::HttpPathRef::drop_front ( size_t  n) const
inline

◆ empty()

bool wpi::HttpPathRef::empty ( ) const
inline

◆ equals() [1/6]

bool wpi::HttpPathRef::equals ( size_t  start,
std::initializer_list< std::string_view match 
) const
inline

◆ equals() [2/6]

bool wpi::HttpPathRef::equals ( size_t  start,
std::span< const std::string_view match 
) const
inline

◆ equals() [3/6]

bool wpi::HttpPathRef::equals ( size_t  start,
std::string_view  match 
) const
inline

◆ equals() [4/6]

bool wpi::HttpPathRef::equals ( std::initializer_list< std::string_view match) const
inline

◆ equals() [5/6]

bool wpi::HttpPathRef::equals ( std::span< const std::string_view match) const
inline

◆ equals() [6/6]

bool wpi::HttpPathRef::equals ( std::string_view  match) const
inline

◆ operator bool()

wpi::HttpPathRef::operator bool ( ) const
inlineexplicit

◆ operator[]()

std::string_view wpi::HttpPathRef::operator[] ( size_t  n) const
inline

◆ size()

size_t wpi::HttpPathRef::size ( ) const
inline

◆ startswith() [1/6]

bool wpi::HttpPathRef::startswith ( size_t  start,
std::initializer_list< std::string_view match 
) const
inline

◆ startswith() [2/6]

bool wpi::HttpPathRef::startswith ( size_t  start,
std::span< const std::string_view match 
) const
inline

◆ startswith() [3/6]

bool wpi::HttpPathRef::startswith ( size_t  start,
std::string_view  match 
) const
inline

◆ startswith() [4/6]

bool wpi::HttpPathRef::startswith ( std::initializer_list< std::string_view match) const
inline

◆ startswith() [5/6]

bool wpi::HttpPathRef::startswith ( std::span< const std::string_view match) const
inline

◆ startswith() [6/6]

bool wpi::HttpPathRef::startswith ( std::string_view  match) const
inline

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