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