![](internal_8h__incl.png)
![](internal_8h__dep__incl.png)
Go to the source code of this file.
Functions | |
void | internalStart (const Comm::ConnectionPointer &clientConn, HttpRequest *, StoreEntry *, const AccessLogEntryPointer &) |
bool | internalCheck (const SBuf &urlPath) |
bool | internalStaticCheck (const SBuf &urlPath) |
char * | internalLocalUri (const char *dir, const SBuf &name) |
char * | internalRemoteUri (bool, const char *, unsigned short, const char *, const SBuf &) |
const char * | internalHostname (void) |
bool | internalHostnameIs (const SBuf &) |
bool | ForSomeCacheManager (const SBuf &) |
Function Documentation
◆ ForSomeCacheManager()
bool ForSomeCacheManager | ( | const SBuf & | ) |
whether the given request URL path points to a cache manager (not necessarily running on this Squid instance)
Definition at line 86 of file internal.cc.
References SBuf::startsWith(), and CacheManager::WellKnownUrlPathPrefix().
Referenced by ClientHttpRequest::checkForInternalAccess(), and internalStart().
◆ internalCheck()
bool internalCheck | ( | const SBuf & | urlPath | ) |
Definition at line 72 of file internal.cc.
References SBuf::startsWith().
Referenced by ClientHttpRequest::checkForInternalAccess(), and ConnStateData::parseHttpRequest().
◆ internalHostname()
const char* internalHostname | ( | void | ) |
Definition at line 149 of file internal.cc.
References SquidConfig::appendDomain, Config, getMyHostname(), LOCAL_ARRAY, SQUIDHOSTNAMELEN, Tolower(), and xstrncpy().
Referenced by ClientHttpRequest::checkForInternalAccess(), and internalHostnameIs().
◆ internalHostnameIs()
bool internalHostnameIs | ( | const SBuf & | ) |
Definition at line 165 of file internal.cc.
References SBuf::caseCmp(), Config, SquidConfig::hostnameAliases, and internalHostname().
Referenced by ClientHttpRequest::checkForInternalAccess().
◆ internalLocalUri()
char* internalLocalUri | ( | const char * | dir, |
const SBuf & | name | ||
) |
Definition at line 139 of file internal.cc.
References getMyHostname(), getMyPort(), and internalRemoteUri().
Referenced by mimeGetIconURL(), ConnStateData::parseHttpRequest(), MimeIcon::setName(), and storeDigestRewriteStart().
◆ internalRemoteUri()
char* internalRemoteUri | ( | bool | , |
const char * | , | ||
unsigned short | , | ||
const char * | , | ||
const SBuf & | |||
) |
Definition at line 95 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(), port, AnyP::Uri::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 * | , | ||
StoreEntry * | , | ||
const AccessLogEntryPointer & | |||
) |
Definition at line 32 of file internal.cc.
References StoreEntry::append(), Assure, StoreEntry::complete(), debugObj(), debugs, ERR_INVALID_REQ, errorAppendEntry(), HttpRequest::flags, ForSomeCacheManager(), CacheManager::GetInstance(), httpRequestPack(), RequestFlags::internal, netdbBinaryExchange(), AnyP::Uri::path(), StoreEntry::replaceHttpReply(), Http::scNotFound, HttpReply::setHeaders(), squid_curtime, CacheManager::start(), and HttpRequest::url.
Referenced by FwdState::Start().
◆ internalStaticCheck()
bool internalStaticCheck | ( | const SBuf & | urlPath | ) |
Definition at line 79 of file internal.cc.
References SBuf::startsWith().
Referenced by ClientHttpRequest::checkForInternalAccess().
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