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 information 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 *const name, const Helper::Client::Pointer &hlp, HLPCB *const replyHandler, ClientHttpRequest *const http, HLPCB *const handler, void *const data, Format::Format *const 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 Helper::Client::Pointer redirectors
 
static Helper::Client::Pointer storeIds
 
static OBJH redirectStats
 
static OBJH storeIdStats
 
static int redirectorBypassed = 0
 
static int storeIdBypassed = 0
 
static Format::FormatredirectorExtrasFmt = nullptr
 
static Format::FormatstoreIdExtrasFmt = nullptr
 

Macro Definition Documentation

◆ MAX_REDIRECTOR_REQUEST_STRLEN

#define MAX_REDIRECTOR_REQUEST_STRLEN   (MAX_URL + 1024)

Definition at line 39 of file redirect.cc.

Function Documentation

◆ constructHelperQuery()

◆ redirectHandleReply()

◆ redirectInit()

◆ redirectReconfigure()

void redirectReconfigure ( )

Definition at line 433 of file redirect.cc.

References redirectInit(), and redirectShutdown().

Referenced by mainReconfigureFinish().

◆ redirectShutdown()

void redirectShutdown ( void  )

TODO: 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 406 of file redirect.cc.

References helperShutdown(), 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 = nullptr
static

Definition at line 63 of file redirect.cc.

Referenced by redirectInit(), redirectShutdown(), and redirectStart().

◆ redirectors

Helper::Client::Pointer redirectors
static

Definition at line 57 of file redirect.cc.

Referenced by redirectInit(), redirectShutdown(), redirectStart(), and redirectStats().

◆ 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 = nullptr
static

Definition at line 64 of file redirect.cc.

Referenced by redirectInit(), redirectShutdown(), and storeIdStart().

◆ storeIdHandleReply

HLPCB storeIdHandleReply
static

Definition at line 56 of file redirect.cc.

Referenced by storeIdStart().

◆ storeIds

Helper::Client::Pointer storeIds
static

Definition at line 58 of file redirect.cc.

Referenced by redirectInit(), redirectShutdown(), storeIdStart(), and storeIdStats().

◆ storeIdStats

OBJH storeIdStats
static

Definition at line 60 of file redirect.cc.

Referenced by redirectInit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors