#include "squid.h"
#include "AccessLogEntry.h"
#include "acl/FilledChecklist.h"
#include "base/TextException.h"
#include "cbdata.h"
#include "errorpage.h"
#include "FwdState.h"
#include "globals.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "icmp/net_db.h"
#include "MemBuf.h"
#include "mime_header.h"
#include "RequestFlags.h"
#include "Store.h"
#include "StoreClient.h"
#include "tools.h"
#include "urn.h"

Go to the source code of this file.
Classes | |
class | UrnState |
struct | url_entry |
Macros | |
#define | URN_REQBUF_SZ 4096 |
Functions | |
static url_entry * | urnParseReply (const char *inbuf, const HttpRequestMethod &) |
static url_entry * | urnFindMinRtt (url_entry *urls, const HttpRequestMethod &, int *rtt_ret) |
void | urnStart (HttpRequest *r, StoreEntry *e, const AccessLogEntryPointer &ale) |
static int | url_entry_sort (const void *A, const void *B) |
static void | urnHandleReply (void *data, StoreIOBuffer result) |
Variables | |
static STCB | urnHandleReply |
static const char *const | crlf = "\r\n" |
Macro Definition Documentation
◆ URN_REQBUF_SZ
Function Documentation
◆ url_entry_sort()
|
static |
Definition at line 218 of file urn.cc.
References A, B, and url_entry::rtt.
Referenced by urnHandleReply().
◆ urnFindMinRtt()
|
static |
Definition at line 95 of file urn.cc.
References assert, DBG_IMPORTANT, debugs, url_entry::host, url_entry::rtt, and url_entry::url.
Referenced by urnHandleReply().
◆ urnHandleReply()
|
static |
Definition at line 235 of file urn.cc.
References UrnState::ale, SBuf::appendf(), HttpReply::body, StoreEntry::buffer(), url_entry::cached, StoreEntry::complete(), StoreIOBuffer::data, DBG_IMPORTANT, debugs, EBIT_TEST, UrnState::entry, ENTRY_ABORTED, ERR_URN_RESOLVE, StoreIOBuffer::error, errorAppendEntry(), StoreEntry::flags, StoreIOBuffer::flags, url_entry::flags, getMyHostname(), RefCount< C >::getRaw(), Http::Message::header, headersEnd(), StoreEntry::isAccepting(), SBuf::length(), StoreIOBuffer::length, Http::LOCATION, HttpRequest::method, Must, StoreIOBuffer::offset, Http::Message::parseCharBuf(), HttpHeader::putStr(), StoreEntry::replaceHttpReply(), UrnState::reqbuf, UrnState::reqofs, UrnState::request, url_entry::rtt, safe_free, UrnState::sc, Http::scFound, Http::scNotFound, Http::scOkay, HttpBody::set(), HttpReply::setHeaders(), HttpReply::sline, squid_curtime, Http::StatusLine::status(), STORE_PENDING, StoreEntry::store_status, storeClientCopy(), ErrorState::url, StoreEntry::url(), url_entry::url, url_entry_sort(), UrnState::urlres_e, URN_REQBUF_SZ, urnFindMinRtt(), urnHandleReply, urnParseReply(), visible_appname_string, xisspace, and xstrdup.
◆ urnParseReply()
|
static |
Definition at line 387 of file urn.cc.
References AnyP::Uri::absolute(), SBuf::c_str(), url_entry::cached, crlf, debugs, url_entry::flags, AnyP::Uri::host(), url_entry::host, netdbHostRtt(), netdbPingSite(), AnyP::Uri::parse(), url_entry::rtt, safe_free, storeGetPublic(), url_entry::url, xcalloc(), xfree, and xstrdup.
Referenced by urnHandleReply().
◆ urnStart()
void urnStart | ( | HttpRequest * | r, |
StoreEntry * | e, | ||
const AccessLogEntryPointer & | ale | ||
) |
Definition at line 211 of file urn.cc.
Referenced by FwdState::Start().
Variable Documentation
◆ crlf
|
static |
Definition at line 74 of file urn.cc.
Referenced by urnParseReply().
◆ urnHandleReply
|
static |
Definition at line 72 of file urn.cc.
Referenced by UrnState::start(), and urnHandleReply().