Adaptation::Icap::TrailerParser Class Reference
Parses and stores ICAP trailer header block. More...
#include <ModXact.h>
Collaboration diagram for Adaptation::Icap::TrailerParser:
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 2068 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