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

Definition at line 110 of file ModXact.h.

Constructor & Destructor Documentation

◆ TrailerParser()

Adaptation::Icap::TrailerParser::TrailerParser ( )
inline

Definition at line 113 of file ModXact.h.

References buf, error(), len, and parse().

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 2067 of file ModXact.cc.

References Http::ContentLengthInterpreter::applyTrailerRules(), and Http::scInvalidHeader.

Member Data Documentation

◆ hdr_sz

size_t Adaptation::Icap::TrailerParser::hdr_sz

Definition at line 121 of file ModXact.h.

◆ trailer

HttpHeader Adaptation::Icap::TrailerParser::trailer

Definition at line 119 of file ModXact.h.

Referenced by Adaptation::Icap::ModXact::parseIcapTrailer().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors