#include "squid.h"
#include "AccessLogEntry.h"
#include "CacheManager.h"
#include "comm/Connection.h"
#include "errorpage.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "icmp/net_db.h"
#include "internal.h"
#include "MemBuf.h"
#include "SquidConfig.h"
#include "Store.h"
#include "tools.h"
#include "util.h"
#include "wordlist.h"

Go to the source code of this file.
Functions | |
void | internalStart (const Comm::ConnectionPointer &clientConn, HttpRequest *request, StoreEntry *entry, const AccessLogEntry::Pointer &ale) |
bool | internalCheck (const SBuf &urlPath) |
bool | internalStaticCheck (const SBuf &urlPath) |
char * | internalRemoteUri (bool encrypt, const char *host, unsigned short port, const char *dir, const SBuf &name) |
char * | internalLocalUri (const char *dir, const SBuf &name) |
const char * | internalHostname (void) |
int | internalHostnameIs (const char *arg) |
Function Documentation
◆ internalCheck()
bool internalCheck | ( | const SBuf & | urlPath | ) |
Definition at line 69 of file internal.cc.
References SBuf::startsWith().
Referenced by clientProcessRequest(), and ConnStateData::parseHttpRequest().
◆ internalHostname()
const char * internalHostname | ( | void | ) |
Definition at line 140 of file internal.cc.
References SquidConfig::appendDomain, Config, getMyHostname(), LOCAL_ARRAY, SQUIDHOSTNAMELEN, Tolower(), and xstrncpy().
Referenced by clientProcessRequest(), and internalHostnameIs().
◆ internalHostnameIs()
int internalHostnameIs | ( | const char * | arg | ) |
Definition at line 156 of file internal.cc.
References Config, SquidConfig::hostnameAliases, internalHostname(), wordlist::key, and wordlist::next.
Referenced by clientProcessRequest().
◆ internalLocalUri()
char * internalLocalUri | ( | const char * | dir, |
const SBuf & | name | ||
) |
Definition at line 130 of file internal.cc.
References getMyHostname(), getMyPort(), and internalRemoteUri().
Referenced by mimeGetIconURL(), ConnStateData::parseHttpRequest(), MimeIcon::setName(), and storeDigestRewriteStart().
◆ internalRemoteUri()
char * internalRemoteUri | ( | bool | encrypt, |
const char * | host, | ||
unsigned short | port, | ||
const char * | dir, | ||
const SBuf & | name | ||
) |
Definition at line 86 of file internal.cc.
References MemBuf::append(), Packable::appendf(), assert, AnyP::Uri::authority(), MemBuf::buf, encrypt(), AnyP::Uri::host(), Ip::Address::isAnyAddr(), SBuf::isEmpty(), SBuf::length(), AnyP::Uri::port(), port, AnyP::PROTO_HTTP, SBuf::rawContent(), MemBuf::reset(), SQUIDHOSTNAMELEN, SQUIDSBUFPH, SQUIDSBUFPRINT, Ip::Address::toHostStr(), Tolower(), urlAppendDomain(), and xstrncpy().
Referenced by internalLocalUri(), netdbExchangeStart(), and peerDigestRequest().
◆ internalStart()
void internalStart | ( | const Comm::ConnectionPointer & | clientConn, |
HttpRequest * | request, | ||
StoreEntry * | entry, | ||
const AccessLogEntry::Pointer & | ale | ||
) |
Definition at line 32 of file internal.cc.
References StoreEntry::append(), StoreEntry::complete(), debugObj(), debugs, ERR_INVALID_REQ, errorAppendEntry(), CacheManager::GetInstance(), httpRequestPack(), netdbBinaryExchange(), AnyP::Uri::path(), StoreEntry::replaceHttpReply(), Http::scNotFound, HttpReply::setHeaders(), squid_curtime, CacheManager::start(), SBuf::startsWith(), and HttpRequest::url.
Referenced by FwdState::Start().
◆ internalStaticCheck()
bool internalStaticCheck | ( | const SBuf & | urlPath | ) |
Definition at line 76 of file internal.cc.
References SBuf::startsWith().
Referenced by clientProcessRequest().