#include "cbdata.h"
#include "comm/forward.h"
#include "error/Detail.h"
#include "error/forward.h"
#include "http/forward.h"
#include "http/StatusCode.h"
#include "ip/Address.h"
#include "log/forward.h"
#include "sbuf/SBuf.h"
#include "SquidString.h"
#include "auth/UserRequest.h"
#include <optional>
![](errorpage_8h__incl.png)
![](errorpage_8h__dep__incl.png)
Go to the source code of this file.
Classes | |
class | ErrorState |
class | TemplateFile |
Namespaces | |
ErrorPage | |
Typedefs | |
typedef void | ERCB(int fd, void *, size_t) |
error page callback More... | |
Functions | |
void | errorInitialize (void) |
void | errorClean (void) |
void | errorSend (const Comm::ConnectionPointer &conn, ErrorState *err) |
void | errorAppendEntry (StoreEntry *entry, ErrorState *err) |
err_type | errorReservePageId (const char *page_name, const SBuf &cfgLocation) |
allocates a new slot for the error page More... | |
const char * | errorPageName (int pageId) |
error ID to string More... | |
bool | strHdrAcptLangGetItem (const String &hdr, char *lang, int langLen, size_t &pos) |
std::ostream & | operator<< (std::ostream &, const ErrorState *) |
Typedef Documentation
◆ ERCB
Definition at line 30 of file errorpage.h.
Function Documentation
◆ errorReservePageId()
Definition at line 654 of file errorpage.cc.
◆ operator<<()
std::ostream& operator<< | ( | std::ostream & | , |
const ErrorState * | |||
) |
Definition at line 1567 of file errorpage.cc.
References RawPointer().
◆ strHdrAcptLangGetItem()
Parses the Accept-Language header value and return one language item on each call. Will ignore any whitespace, q-values, and detectably invalid language codes in the header.
- Parameters
-
hdr is the Accept-Language header value lang a buffer to store parsed language code in langlen the length of the lang buffer pos is used to store the offset state of parsing. Must be "0" on first call. Will be altered to point at the start of next field-value.
- Returns
- true if something looking like a language token has been placed in lang, false otherwise
Definition at line 472 of file errorpage.cc.
References debugs, String::size(), String::substr(), xisspace, and xtolower.
Referenced by Ssl::ErrorDetailsManager::findDetail(), Auth::SchemeConfig::isCP1251EncodingAllowed(), and TemplateFile::loadFor().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products