Format.cc File Reference
#include "squid.h"
#include "AccessLogEntry.h"
#include "base64.h"
#include "client_side.h"
#include "comm/Connection.h"
#include "error/Detail.h"
#include "errorpage.h"
#include "fde.h"
#include "format/Format.h"
#include "format/Quoting.h"
#include "format/Token.h"
#include "http/Stream.h"
#include "HttpRequest.h"
#include "MemBuf.h"
#include "proxyp/Header.h"
#include "rfc1738.h"
#include "sbuf/Stream.h"
#include "sbuf/StringConvert.h"
#include "security/CertError.h"
#include "security/Certificate.h"
#include "security/NegotiationHistory.h"
#include "Store.h"
#include "tools.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 const Http::MessageactualReplyHeader (const AccessLogEntry::Pointer &al)
 
static const Http::MessageactualRequestHeader (const AccessLogEntry::Pointer &al)
 

Macro Definition Documentation

◆ strOrNull

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

Definition at line 38 of file Format.cc.

Function Documentation

◆ actualReplyHeader()

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 350 of file Format.cc.

References AccessLogEntry::adapted_request, RefCount< C >::getRaw(), AccessLogEntry::icap, Adaptation::methodReqmod, AccessLogEntry::reply, and AccessLogEntry::IcapLogEntry::reqMethod.

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

◆ actualRequestHeader()

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

◆ log_quoted_string()

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

Definition at line 292 of file Format.cc.

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors