section 22 Refresh Calculation
section 23 URL Parsing
section 23 URL Scheme parsing
-section 24 Low-level String-Buffer functions
section 25 MIME Parsing and Internal Icons
section 25 MiME Header Parsing
section 26 Secure Sockets Layer Proxy
HttpRequest::conditional() const
{
return flags.ims ||
- header.has(HDR_IF_MATCH) ||
- header.has(HDR_IF_NONE_MATCH);
+ header.has(HDR_IF_MATCH) ||
+ header.has(HDR_IF_NONE_MATCH);
}
bool HttpRequest::inheritProperties(const HttpMsg *aMsg)
debugs(MEMBLOB_DEBUGSECTION,9, HERE << "destructed, this="
<< static_cast<void*>(this) << " id=" << id
- << " capacity=" << capacity
- << " size=" << size);
+ << " capacity=" << capacity
+ << " size=" << size);
}
/**
void
MemBlob::append(const char *source, const size_type n)
-{
+{
if (n > 0) { // appending zero bytes is allowed but only affects the stats
Must(willFit(n));
Must(source);
/** Refcountable, fixed-size, content-agnostic memory buffer.
*
- * Allocated memory block is divided into two sequential areas:
+ * Allocated memory block is divided into two sequential areas:
* "used memory" and "available space". The used area can be filled during
* construction, grows via the append() call, and can be clear()ed.
*
* \param off the end of the blob area currently used by the caller
* \param n the total number of bytes the caller wants to append
*/
- bool canAppend(const size_type off, const size_type n) const
- {
+ bool canAppend(const size_type off, const size_type n) const {
// TODO: ignore offset (and adjust size) when the blob is not shared?
return isAppendOffset(off) && willFit(n);
}
const String reqETags = request.header.getList(HDR_IF_NONE_MATCH);
// weak comparison is allowed only for HEAD or full-body GET requests
const bool allowWeakMatch = !request.flags.range &&
- (request.method == METHOD_GET || request.method == METHOD_HEAD);
+ (request.method == METHOD_GET || request.method == METHOD_HEAD);
return hasOneOfEtags(reqETags, allowWeakMatch);
}
ETag reqETag;
if (etagParseInit(&reqETag, str.termedBuf())) {
matched = allowWeakMatch ? etagIsWeakEqual(repETag, reqETag) :
- etagIsStrongEqual(repETag, reqETag);
+ etagIsStrongEqual(repETag, reqETag);
}
}
}