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.

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

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.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors