HttpHeader.h File Reference
#include "anyp/ProtocolVersion.h"
#include "base/LookupTable.h"
#include "http/RegisteredHeaders.h"
#include "HttpHeaderMask.h"
#include "mem/forward.h"
#include "sbuf/forward.h"
#include "SquidString.h"
#include <vector>
Include dependency graph for HttpHeader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HttpHeaderEntry
 
class  HttpHeader
 

Macros

#define HttpHeaderInitPos   (-1)
 

Typedefs

typedef ssize_t HttpHeaderPos
 

Enumerations

enum  http_hdr_owner_type {
  hoNone =0,
  hoHtcpReply,
  hoRequest,
  hoReply,
  hoErrorDetail,
  hoEnd
}
 

Functions

int httpHeaderParseQuotedString (const char *start, const int len, String *val)
 
SBuf httpHeaderQuoteString (const char *raw)
 quotes string using RFC 7230 quoted-string rules More...
 
void httpHeaderCalcMask (HttpHeaderMask *mask, Http::HdrType http_hdr_type_enums[], size_t count)
 
void httpHeaderInitModule (void)
 

Macro Definition Documentation

Typedef Documentation

typedef ssize_t HttpHeaderPos

Iteration for headers; use HttpHeaderPos as opaque type, do not interpret

Definition at line 45 of file HttpHeader.h.

Enumeration Type Documentation

Possible owners of http header

Enumerator
hoNone 
hoHtcpReply 
hoRequest 
hoReply 
hoErrorDetail 
hoEnd 

Definition at line 31 of file HttpHeader.h.

Function Documentation

void httpHeaderCalcMask ( HttpHeaderMask mask,
Http::HdrType  http_hdr_type_enums[],
size_t  count 
)
int httpHeaderParseQuotedString ( const char *  start,
const int  len,
String val 
)

Parses a quoted-string field (RFC 2616 section 2.2), complains if something went wrong, returns non-zero on success. Un-escapes quoted-pair characters found within the string. start should point at the first double-quote.

Definition at line 167 of file HttpHeaderTools.cc.

References String::append(), String::clean(), debugs, HERE(), len, String::limitInit(), and String::termedBuf().

Referenced by HttpHdrSc::parse(), Ssl::ErrorDetailFile::parse(), HttpHdrCc::parse(), and Ftp::PrintReply().

SBuf httpHeaderQuoteString ( const char *  raw)

Definition at line 237 of file HttpHeaderTools.cc.

References SBuf::append(), and assert.

Referenced by Ftp::Relay::createHttpReply().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors