errorpage.h File Reference
#include "cbdata.h"
#include "comm/forward.h"
#include "err_detail_type.h"
#include "err_type.h"
#include "http/forward.h"
#include "http/StatusCode.h"
#include "ip/Address.h"
#include "SquidString.h"
#include "auth/UserRequest.h"
#include "ssl/ErrorDetail.h"
Include dependency graph for errorpage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  ErrorState
class  TemplateFile


typedef void ERCB (int fd, void *, size_t)
 error page callback More...


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 char * errorPageName (int pageId)
 error ID to string More...
bool strHdrAcptLangGetItem (const String &hdr, char *lang, int langLen, size_t &pos)

Typedef Documentation

typedef void ERCB(int fd, void *, size_t)

Definition at line 29 of file errorpage.h.

Function Documentation

bool strHdrAcptLangGetItem ( const String hdr,
char *  lang,
int  langLen,
size_t pos 

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.

hdris the Accept-Language header value
langa buffer to store parsed language code in
langlenthe length of the lang buffer
posis 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.
true if something looking like a language token has been placed in lang, false otherwise

Definition at line 361 of file

References debugs, String::size(), String::substr(), xisspace, and xtolower.

Referenced by Ssl::ErrorDetailsManager::getErrorDetail(), and TemplateFile::loadFor().






Web Site Translations