cache_manager.cc
Go to the documentation of this file.
84CacheManager::registerProfile(char const * action, char const * desc, OBJH * handler, int pw_req_flag, int atomic)
213 debugs(16, 3, "MGR request: host=" << uri.host() << ", action=" << action << ", params=" << params);
243 debugs(16, DBG_IMPORTANT, "ERROR: CacheManager::ParseHeaders: unknown basic_cookie format '" << basic_cookie << "'");
295CacheManager::start(const Comm::ConnectionPointer &client, HttpRequest *request, StoreEntry *entry, const AccessLogEntry::Pointer &ale)
std::ostream & CurrentException(std::ostream &os)
prints active (i.e., thrown but not yet handled) exception
Definition: TextException.cc:88
Definition: CacheManager.h:33
char * PasswdGet(Mgr::ActionPasswordList *, const char *)
Definition: cache_manager.cc:432
const char * ActionProtection(const Mgr::ActionProfilePointer &profile)
Definition: cache_manager.cc:409
static void PutCommonResponseHeaders(HttpReply &, const char *httpOrigin)
Definition: cache_manager.cc:451
Mgr::ActionProfilePointer findAction(char const *action) const
Definition: cache_manager.cc:115
void ParseHeaders(const HttpRequest *request, Mgr::ActionParams ¶ms)
Definition: cache_manager.cc:225
Mgr::Action::Pointer createRequestedAction(const Mgr::ActionParams &)
Definition: cache_manager.cc:146
int CheckPassword(const Mgr::Command &cmd)
Definition: cache_manager.cc:265
static const SBuf & WellKnownUrlPathPrefix()
initial URL path characters that identify cache manager requests
Definition: cache_manager.cc:156
Mgr::Action::Pointer createNamedAction(const char *actionName)
Definition: cache_manager.cc:133
void registerProfile(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: cache_manager.cc:84
Mgr::CommandPointer ParseUrl(const AnyP::Uri &)
Definition: cache_manager.cc:175
void start(const Comm::ConnectionPointer &client, HttpRequest *request, StoreEntry *entry, const AccessLogEntryPointer &ale)
Definition: cache_manager.cc:295
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
CharacterSet complement(const char *complementLabel=nullptr) const
Definition: CharacterSet.cc:74
creates Action using supplied Action::Create method and command
Definition: cache_manager.cc:49
ClassActionCreator(Handler *aHandler)
Definition: cache_manager.cc:54
Mgr::Action::Pointer Handler(const Mgr::Command::Pointer &cmd)
Definition: cache_manager.cc:51
Mgr::Action::Pointer create(const Mgr::Command::Pointer &cmd) const override
returns a pointer to the new Action object for cmd; never nil
Definition: cache_manager.cc:56
Definition: errorpage.h:89
Definition: ExceptionErrorDetail.h:22
Definition: HttpHdrCc.h:44
SBuf getAuthToken(Http::HdrType id, const char *auth_scheme) const
Definition: HttpHeader.cc:1276
void putAuth(const char *auth_scheme, const char *realm)
Definition: HttpHeader.cc:1005
Definition: HttpReply.h:25
Definition: HttpRequest.h:49
void set(const AnyP::ProtocolVersion &newVersion, Http::StatusCode newStatus, const char *newReason=nullptr)
Definition: StatusLine.cc:35
Definition: ActionCreator.h:24
Cache Manager Action parameters extracted from the user request.
Definition: ActionParams.h:24
list of cachemgr password authorization definitions. Currently a POD.
Definition: ActionPasswordList.h:19
hard-coded Cache Manager action configuration, including Action creator
Definition: ActionProfile.h:22
combined hard-coded action profile with user-supplied action parameters
Definition: Command.h:22
Definition: Forwarder.h:32
static void Parse(Parser::Tokenizer &, QueryParams &)
parses the query string parameters
Definition: QueryParams.cc:112
Definition: Tokenizer.h:30
Definition: Store.h:42
void replaceHttpReply(const HttpReplyPointer &, const bool andStartWriting=true)
Definition: store.cc:1691
Definition: SquidString.h:26
void errorAppendEntry(StoreEntry *entry, ErrorState *err)
Definition: errorpage.cc:717
AnyP::ProtocolVersion ProtocolVersion(unsigned int aMajor, unsigned int aMinor)
HTTP version label information.
Definition: ProtocolVersion.h:19
void RegisterBasics()
Registers profiles for the actions above; TODO: move elsewhere?
Definition: BasicActions.cc:150
static bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:315
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
Definition: Stream.h:63
Definition: parse.c:160
bool IamWorkerProcess()
whether the current process handles HTTP transactions and such
Definition: stub_tools.cc:47
bool UsingSmp()
Whether there should be more than one worker process running.
Definition: tools.cc:696