9#ifndef SQUID_SRC_ANYP_URISCHEME_H
10#define SQUID_SRC_ANYP_URISCHEME_H
26using Port = std::optional<KnownPort>;
std::vector< SBuf > LowercaseSchemeNames
UriScheme(const AnyP::UriScheme &o)
AnyP::ProtocolType theScheme_
This is a typecode pointer into the enum/registry of protocols handled.
AnyP::UriScheme & operator=(AnyP::UriScheme &&)=default
static void Init()
initializes down-cased protocol scheme names array
static AnyP::ProtocolType FindProtocolType(const SBuf &)
SBuf image_
the string representation
AnyP::UriScheme & operator=(const AnyP::UriScheme &o)
UriScheme(AnyP::UriScheme &&)=default
static LowercaseSchemeNames LowercaseSchemeNames_
bool operator!=(AnyP::ProtocolType const &aProtocol) const
std::optional< KnownPort > Port
validated/supported port number (if any)
std::ostream & operator<<(std::ostream &, const Host &)
uint16_t KnownPort
validated/supported port number; these values are never zero