|
Squid Web Cache master
|
#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>Go to the source code of this file.
Classes | |
| class | ErrorState |
| class | TemplateFile |
Namespaces | |
| namespace | ErrorPage |
Typedefs | |
| typedef void | ERCB(int fd, void *, size_t) |
| error page callback | |
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 | |
| const char * | errorPageName (int pageId) |
| error ID to string | |
| bool | strHdrAcptLangGetItem (const String &hdr, char *lang, int langLen, size_t &pos) |
| std::ostream & | operator<< (std::ostream &, const ErrorState *) |
Definition at line 30 of file errorpage.h.
Definition at line 654 of file errorpage.cc.
| std::ostream & operator<< | ( | std::ostream & | os, |
| const ErrorState * | err | ||
| ) |
Definition at line 1558 of file errorpage.cc.
References RawPointer().
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.
| 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. |
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().