|
Squid Web Cache master
|
Namespaces | |
| namespace | One |
| namespace | Two |
Classes | |
| class | Header |
| PROXY protocol v1 or v2 header. More... | |
| class | Parsed |
| successful parsing result More... | |
Typedefs | |
| typedef RefCount< Header > | HeaderPointer |
Functions | |
| static Two::FieldType | NameToFieldType (const SBuf &) |
| FieldNameToFieldType() helper that handles pseudo headers. | |
| static Two::FieldType | IntegerToFieldType (const SBuf &) |
| FieldNameToFieldType() helper that handles integer TLV types. | |
| const SBuf & | PseudoFieldTypeToFieldName (const Two::FieldType) |
| Two::FieldType | FieldNameToFieldType (const SBuf &nameOrId) |
| Parsed | Parse (const SBuf &) |
| typedef RefCount<Header> ProxyProtocol::HeaderPointer |
| ProxyProtocol::Two::FieldType ProxyProtocol::FieldNameToFieldType | ( | const SBuf & | nameOrId | ) |
Parses human-friendly PROXY protocol field type representation. Only pseudo headers can (and should) be represented by their names.
Definition at line 102 of file Elements.cc.
References CharacterSet::DIGIT, IntegerToFieldType(), NameToFieldType(), and Parser::Tokenizer::skipOne().
Referenced by Format::Token::parse().
|
static |
Definition at line 73 of file Elements.cc.
References Parser::Tokenizer::atEnd(), Parser::Tokenizer::int64(), Must, Parser::Tokenizer::skip(), TexcHere, and ToSBuf().
Referenced by FieldNameToFieldType().
|
static |
Definition at line 53 of file Elements.cc.
References SBuf::startsWith(), TexcHere, and ToSBuf().
Referenced by FieldNameToFieldType().
| ProxyProtocol::Parsed ProxyProtocol::Parse | ( | const SBuf & | buf | ) |
Parses a PROXY protocol header from the buffer, determining the protocol version (v1 or v2) by the leading magic string.
| Parser::BinaryTokenizer::InsufficientInput | to ask for more data |
Definition at line 252 of file Parser.cc.
References SBuf::length(), Parser::Tokenizer::parsedSize(), Parser::Tokenizer::remaining(), Parser::Tokenizer::skip(), and TexcHere.
Referenced by ConnStateData::parseProxyProtocolHeader().
| const SBuf & ProxyProtocol::PseudoFieldTypeToFieldName | ( | const Two::FieldType | fieldType | ) |
Definition at line 40 of file Elements.cc.
References assert.
Referenced by ProxyProtocol::Header::toMime().