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 length + 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)
 
void redirectReconfigure ()
 

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

◆ MAX_REDIRECTOR_REQUEST_STRLEN

#define MAX_REDIRECTOR_REQUEST_STRLEN   (MAX_URL + 1024)

Definition at line 39 of file redirect.cc.

Referenced by constructHelperQuery().

Function Documentation

◆ constructHelperQuery()

◆ redirectHandleReply()

◆ redirectInit()

void redirectInit ( void  )

Definition at line 336 of file redirect.cc.

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

◆ redirectReconfigure()

void redirectReconfigure ( )

Definition at line 438 of file redirect.cc.

References redirectInit(), and redirectShutdown().

Referenced by mainReconfigureFinish().

◆ redirectShutdown()

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 mainRotate(), redirectReconfigure(), and SquidShutdown().

◆ redirectStart()

◆ redirectStats()

static void redirectStats ( StoreEntry sentry)
static

◆ storeIdHandleReply()

static void storeIdHandleReply ( void *  data,
const Helper::Reply reply 
)
static

◆ storeIdStart()

void storeIdStart ( ClientHttpRequest http,
HLPCB handler,
void *  data 
)

◆ storeIdStats()

static void storeIdStats ( StoreEntry sentry)
static

Variable Documentation

◆ redirectHandleReply

HLPCB redirectHandleReply
static

Definition at line 55 of file redirect.cc.

Referenced by redirectStart().

◆ redirectorBypassed

int redirectorBypassed = 0
static

Definition at line 61 of file redirect.cc.

Referenced by redirectStart(), and redirectStats().

◆ redirectorExtrasFmt

Format::Format* redirectorExtrasFmt = NULL
static

Definition at line 63 of file redirect.cc.

Referenced by redirectInit(), and redirectShutdown().

◆ redirectors

helper* redirectors = NULL
static

Definition at line 57 of file redirect.cc.

Referenced by redirectShutdown().

◆ redirectStats

OBJH redirectStats
static

Definition at line 59 of file redirect.cc.

Referenced by redirectInit().

◆ storeIdBypassed

int storeIdBypassed = 0
static

Definition at line 62 of file redirect.cc.

Referenced by storeIdStart(), and storeIdStats().

◆ storeIdExtrasFmt

Format::Format* storeIdExtrasFmt = NULL
static

Definition at line 64 of file redirect.cc.

Referenced by redirectInit(), and redirectShutdown().

◆ storeIdHandleReply

HLPCB storeIdHandleReply
static

Definition at line 56 of file redirect.cc.

Referenced by storeIdStart().

◆ storeIds

helper* storeIds = NULL
static

Definition at line 58 of file redirect.cc.

Referenced by redirectShutdown().

◆ storeIdStats

OBJH storeIdStats
static

Definition at line 60 of file redirect.cc.

Referenced by redirectInit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors