MCPcopy Create free account
hub / github.com/apache/trafficserver / getRequestStatus

Method getRequestStatus

plugins/esi/fetcher/HttpDataFetcherImpl.cc:318–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318DataStatus
319HttpDataFetcherImpl::getRequestStatus(const string &url) const
320{
321 UrlToContentMap::const_iterator iter = _pages.find(url);
322 if (iter == _pages.end()) {
323 TSError("[HttpDataFetcherImpl]Status being requested for unregistered URL [%s]", url.data());
324 return STATUS_ERROR;
325 }
326
327 if (!(iter->second).complete) {
328 return STATUS_DATA_PENDING;
329 }
330
331 if ((iter->second).resp_status != TS_HTTP_STATUS_OK) {
332 return STATUS_ERROR;
333 }
334
335 return STATUS_DATA_AVAILABLE;
336}
337
338void
339HttpDataFetcherImpl::useHeader(const HttpHeader &header)

Callers 2

_getIncludeStatusMethod · 0.45
_getIncludeDataMethod · 0.45

Calls 4

TSErrorFunction · 0.50
findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected