errorpage.h
Go to the documentation of this file.
94 ErrorState(err_type type, Http::StatusCode, HttpRequest * request, const AccessLogEntryPointer &al);
103 static ErrorState *NewForwarding(err_type, HttpRequestPointer &, const AccessLogEntryPointer &);
Definition: wordlist.h:41
void errorAppendEntry(StoreEntry *entry, ErrorState *err)
Definition: errorpage.cc:738
Definition: errorpage.cc:103
bool loaded() const
return true if the data loaded from disk without any problem
Definition: errorpage.h:287
bool wasLoaded
True if the template data read from disk without any problem.
Definition: errorpage.h:334
err_type errorReservePageId(const char *page_name, const SBuf &cfgLocation)
allocates a new slot for the error page
Definition: errorpage.cc:654
void detailError(const ErrorDetail::Pointer &dCode)
set error type-specific detail code
Definition: errorpage.h:111
Definition: errorpage.h:280
void compileLogformatCode(Build &build)
compile @Squid{code} sequence containing a single logformat code
Definition: errorpage.cc:913
TemplateFile(const char *name, const err_type code)
Definition: errorpage.cc:357
bool silent
Whether to print error messages on cache.log file or not. It is user defined.
Definition: errorpage.h:317
Definition: HttpRequest.h:48
virtual void setDefault()
recover from loadDefault() failure to load or parse() a template
Definition: errorpage.h:324
void errorSend(const Comm::ConnectionPointer &conn, ErrorState *err)
Definition: errorpage.cc:792
ErrorState()=delete
void noteBuildError_(const char *msg, const char *errorLocation, bool forceBypass)
Definition: errorpage.cc:1478
Definition: MemBuf.h:23
void bypassBuildErrorXXX(const char *const msg, const char *const errorLocation)
Definition: errorpage.h:158
SBuf text("GET http://resource.com/path HTTP/1.1\r\n" "Host: resource.com\r\n" "Cookie: laijkpk3422r j1noin \r\n" "\r\n")
void validate()
ensures that a future BuildHttpReply() is likely to succeed
Definition: errorpage.cc:1303
state and parameters shared by several ErrorState::compile*() methods
Definition: errorpage.cc:106
Definition: SquidString.h:25
SBuf compileBody(const char *text, bool allowRecursion)
Definition: errorpage.cc:1436
Definition: HttpReply.h:24
SBuf inputLocation
the source of the error template (for reporting purposes)
Definition: errorpage.h:117
Definition: Store.h:37
static ErrorState * NewForwarding(err_type, HttpRequestPointer &, const AccessLogEntryPointer &)
Creates a general request forwarding error with the right http_status.
Definition: errorpage.cc:691
std::ostream & operator<<(std::ostream &, const ErrorState *)
Definition: errorpage.cc:1567
SBuf buildBody()
locates the right error page template for this error and compiles it
Definition: errorpage.cc:1400
Definition: errorpage.h:88
SBuf compile(const char *input, bool building_deny_info_url, bool allowRecursion)
Definition: errorpage.cc:1442
struct ErrorState::@54 ftp
void noteBuildError(const char *const msg, const char *const errorLocation)
Definition: errorpage.h:149
Definition: Address.h:42
bool strHdrAcptLangGetItem(const String &hdr, char *lang, int langLen, size_t &pos)
Definition: errorpage.cc:472
Auth::UserRequest::Pointer auth_user_request
Definition: errorpage.h:175
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