Format.cc File Reference
#include "squid.h"
#include "AccessLogEntry.h"
#include "client_side.h"
#include "comm/Connection.h"
#include "err_detail_type.h"
#include "errorpage.h"
#include "fde.h"
#include "format/Format.h"
#include "format/Quoting.h"
#include "format/Token.h"
#include "fqdncache.h"
#include "http/Stream.h"
#include "HttpRequest.h"
#include "MemBuf.h"
#include "rfc1738.h"
#include "sbuf/StringConvert.h"
#include "security/CertError.h"
#include "security/NegotiationHistory.h"
#include "SquidTime.h"
#include "Store.h"
#include "tools.h"
#include "URL.h"
#include "ssl/ErrorDetail.h"
#include "ssl/ServerBump.h"
Include dependency graph for Format.cc:

Go to the source code of this file.

Macros

#define strOrNull(s)   ((s)==NULL||(s)[0]=='\0'?NULL:(s))
 Convert a string to NULL pointer if it is "". More...
 

Functions

static void log_quoted_string (const char *str, char *out)
 
static char * sslErrorName (Security::ErrorCode err, char *buf, size_t size)
 
static const Http::MessageactualReplyHeader (const AccessLogEntry::Pointer &al)
 
static const Http::MessageactualRequestHeader (const AccessLogEntry::Pointer &al)
 

Macro Definition Documentation

#define strOrNull (   s)    ((s)==NULL||(s)[0]=='\0'?NULL:(s))

Definition at line 37 of file Format.cc.

Referenced by Format::Format::assemble().

Function Documentation

static const Http::Message* actualReplyHeader ( const AccessLogEntry::Pointer al)
static

XXX: Misnamed. TODO: Split <h (and this function) to distinguish received headers from sent headers rather than failing to distinguish requests from responses.

Return values
HttpReplysent to the HTTP client (access.log and default context).
HttpReplyreceived (encapsulated) from the ICAP server (icap.log context).
HttpRequestreceived (encapsulated) from the ICAP server (icap.log context).

Definition at line 340 of file Format.cc.

References Adaptation::methodReqmod.

Referenced by Format::Format::assemble().

static const Http::Message* actualRequestHeader ( const AccessLogEntry::Pointer al)
static

XXX: Misnamed. See actualReplyHeader().

Returns
HttpRequest or HttpReply for http::>h.

Definition at line 354 of file Format.cc.

References Adaptation::methodRespmod.

Referenced by Format::Format::assemble().

static void log_quoted_string ( const char *  str,
char *  out 
)
static

Definition at line 273 of file Format.cc.

References p.

Referenced by Format::Format::assemble().

static char* sslErrorName ( Security::ErrorCode  err,
char *  buf,
size_t  size 
)
static

Definition at line 327 of file Format.cc.

References buf.

Referenced by Format::Format::assemble().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors