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

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

#include <wpi/net/HttpUtil.hpp>

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::net::HttpPathRef::HttpPathRef ( )
default

◆ HttpPathRef() [2/2]

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

Member Function Documentation

◆ drop_front()

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

◆ empty()

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

◆ equals() [1/6]

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

◆ equals() [2/6]

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

◆ equals() [3/6]

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

◆ equals() [4/6]

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

◆ equals() [5/6]

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

◆ equals() [6/6]

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

◆ operator bool()

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

◆ operator[]()

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

◆ size()

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

◆ startswith() [1/6]

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

◆ startswith() [2/6]

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

◆ startswith() [3/6]

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

◆ startswith() [4/6]

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

◆ startswith() [5/6]

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

◆ startswith() [6/6]

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

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