errorpage.h
Go to the documentation of this file.
92 ErrorState(err_type type, Http::StatusCode, HttpRequest * request, const AccessLogEntryPointer &al);
101 static ErrorState *NewForwarding(err_type, HttpRequestPointer &, const AccessLogEntryPointer &);
Definition: wordlist.h:20
void errorAppendEntry(StoreEntry *entry, ErrorState *err)
Definition: errorpage.cc:719
Definition: errorpage.cc:99
bool loaded() const
return true if the data loaded from disk without any problem
Definition: errorpage.h:286
bool wasLoaded
True if the template data read from disk without any problem.
Definition: errorpage.h:333
err_type errorReservePageId(const char *page_name, const SBuf &cfgLocation)
allocates a new slot for the error page
Definition: errorpage.cc:648
struct ErrorState::@59 ftp
void detailError(const ErrorDetail::Pointer &dCode)
set error type-specific detail code
Definition: errorpage.h:109
void bypassBuildErrorXXX(const char *msg, const char *near)
Definition: errorpage.h:156
Definition: errorpage.h:280
void compileLogformatCode(Build &build)
compile @Squid{code} sequence containing a single logformat code
Definition: errorpage.cc:878
TemplateFile(const char *name, const err_type code)
Definition: errorpage.cc:351
void noteBuildError_(const char *msg, const char *near, const bool forceBypass)
Definition: errorpage.cc:1440
bool silent
Whether to print error messages on cache.log file or not. It is user defined.
Definition: errorpage.h:316
Definition: HttpRequest.h:49
virtual void setDefault()
recover from loadDefault() failure to load or parse() a template
Definition: errorpage.h:323
void errorSend(const Comm::ConnectionPointer &conn, ErrorState *err)
Definition: errorpage.cc:750
ErrorState()=delete
Definition: MemBuf.h:24
void validate()
ensures that a future BuildHttpReply() is likely to succeed
Definition: errorpage.cc:1267
state and parameters shared by several ErrorState::compile*() methods
Definition: errorpage.cc:103
Definition: SquidString.h:26
SBuf compileBody(const char *text, bool allowRecursion)
Definition: errorpage.cc:1398
Definition: HttpReply.h:25
SBuf inputLocation
the source of the error template (for reporting purposes)
Definition: errorpage.h:115
Definition: Store.h:42
static ErrorState * NewForwarding(err_type, HttpRequestPointer &, const AccessLogEntryPointer &)
Creates a general request forwarding error with the right http_status.
Definition: errorpage.cc:675
std::ostream & operator<<(std::ostream &, const ErrorState *)
Definition: errorpage.cc:1529
SBuf buildBody()
locates the right error page template for this error and compiles it
Definition: errorpage.cc:1362
Definition: errorpage.h:87
SBuf compile(const char *input, bool building_deny_info_url, bool allowRecursion)
Definition: errorpage.cc:1404
Definition: Address.h:41
bool strHdrAcptLangGetItem(const String &hdr, char *lang, int langLen, size_t &pos)
Definition: errorpage.cc:466
Auth::UserRequest::Pointer auth_user_request
Definition: errorpage.h:173
void noteBuildError(const char *msg, const char *near)
Definition: errorpage.h:147