Adaptation::Icap::TrailerParser Class Reference
Parses and stores ICAP trailer header block. More...
#include <ModXact.h>
Collaboration diagram for Adaptation::Icap::TrailerParser:
![Collaboration graph](classAdaptation_1_1Icap_1_1TrailerParser__coll__graph.png)
Public Member Functions | |
TrailerParser () | |
bool | parse (const char *buf, int len, int atEnd, Http::StatusCode *error) |
Public Attributes | |
HttpHeader | trailer |
size_t | hdr_sz |
parsed trailer size if parse() was successful More... | |
Detailed Description
Constructor & Destructor Documentation
◆ TrailerParser()
Member Function Documentation
◆ parse()
bool Adaptation::Icap::TrailerParser::parse | ( | const char * | buf, |
int | len, | ||
int | atEnd, | ||
Http::StatusCode * | error | ||
) |
Parses trailers stored in a buffer.
- Returns
- true and sets hdr_sz on success
- false and sets *error to zero when needs more data
- false and sets *error to a positive Http::StatusCode on error
Definition at line 2065 of file ModXact.cc.
References Http::ContentLengthInterpreter::applyTrailerRules(), error(), and Http::scInvalidHeader.
Member Data Documentation
◆ hdr_sz
◆ trailer
HttpHeader Adaptation::Icap::TrailerParser::trailer |
The documentation for this class was generated from the following files:
- src/adaptation/icap/ModXact.h
- src/adaptation/icap/ModXact.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products