redirect.cc File Reference
#include "squid.h"
#include "acl/Checklist.h"
#include "cache_cf.h"
#include "client_side.h"
#include "client_side_reply.h"
#include "client_side_request.h"
#include "comm/Connection.h"
#include "fde.h"
#include "format/Format.h"
#include "globals.h"
#include "helper.h"
#include "helper/Reply.h"
#include "http/Stream.h"
#include "HttpRequest.h"
#include "mgr/Registration.h"
#include "redirect.h"
#include "rfc1738.h"
#include "sbuf/SBuf.h"
#include "SquidConfig.h"
#include "Store.h"
#include "auth/UserRequest.h"
#include "ssl/support.h"
Include dependency graph for redirect.cc:

Go to the source code of this file.

Classes

class  RedirectStateData
 

Macros

#define MAX_REDIRECTOR_REQUEST_STRLEN   (MAX_URL + 1024)
 url maximum lengh + extra informations passed to redirector More...
 

Functions

static void redirectHandleReply (void *data, const Helper::Reply &reply)
 
static void storeIdHandleReply (void *data, const Helper::Reply &reply)
 
static void redirectStats (StoreEntry *sentry)
 
static void storeIdStats (StoreEntry *sentry)
 
static void constructHelperQuery (const char *name, helper *hlp, HLPCB *replyHandler, ClientHttpRequest *http, HLPCB *handler, void *data, Format::Format *requestExtrasFmt)
 
void redirectStart (ClientHttpRequest *http, HLPCB *handler, void *data)
 
void storeIdStart (ClientHttpRequest *http, HLPCB *handler, void *data)
 
void redirectInit (void)
 
void redirectShutdown (void)
 

Variables

static HLPCB redirectHandleReply
 
static HLPCB storeIdHandleReply
 
static helperredirectors = NULL
 
static helperstoreIds = NULL
 
static OBJH redirectStats
 
static OBJH storeIdStats
 
static int redirectorBypassed = 0
 
static int storeIdBypassed = 0
 
static Format::FormatredirectorExtrasFmt = NULL
 
static Format::FormatstoreIdExtrasFmt = NULL
 

Macro Definition Documentation

#define MAX_REDIRECTOR_REQUEST_STRLEN   (MAX_URL + 1024)

Definition at line 39 of file redirect.cc.

Referenced by constructHelperQuery().

Function Documentation

void redirectInit ( void  )

Definition at line 336 of file redirect.cc.

Referenced by mainInitialize(), mainReconfigureFinish(), and mainRotate().

void redirectShutdown ( void  )

FIXME: Temporary unified helpers Shutdown When and if needed for more helpers a separated shutdown method will be added for each of them.

Definition at line 409 of file redirect.cc.

References helperShutdown(), NULL, redirectorExtrasFmt, redirectors, shutting_down, storeIdExtrasFmt, and storeIds.

Referenced by mainReconfigureStart(), mainRotate(), and SquidShutdown().

static void redirectStats ( StoreEntry sentry)
static
static void storeIdHandleReply ( void *  data,
const Helper::Reply reply 
)
static
void storeIdStart ( ClientHttpRequest http,
HLPCB handler,
void *  data 
)
static void storeIdStats ( StoreEntry sentry)
static

Variable Documentation

HLPCB redirectHandleReply
static

Definition at line 55 of file redirect.cc.

Referenced by redirectStart().

int redirectorBypassed = 0
static

Definition at line 61 of file redirect.cc.

Referenced by redirectStart(), and redirectStats().

Format::Format* redirectorExtrasFmt = NULL
static

Definition at line 63 of file redirect.cc.

Referenced by redirectInit(), and redirectShutdown().

helper* redirectors = NULL
static

Definition at line 57 of file redirect.cc.

Referenced by redirectShutdown().

OBJH redirectStats
static

Definition at line 59 of file redirect.cc.

Referenced by redirectInit().

int storeIdBypassed = 0
static

Definition at line 62 of file redirect.cc.

Referenced by storeIdStart(), and storeIdStats().

Format::Format* storeIdExtrasFmt = NULL
static

Definition at line 64 of file redirect.cc.

Referenced by redirectInit(), and redirectShutdown().

HLPCB storeIdHandleReply
static

Definition at line 56 of file redirect.cc.

Referenced by storeIdStart().

helper* storeIds = NULL
static

Definition at line 58 of file redirect.cc.

Referenced by redirectShutdown().

OBJH storeIdStats
static

Definition at line 60 of file redirect.cc.

Referenced by redirectInit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors