MCPcopy Create free account
hub / github.com/aria2/aria2 / conditionalRequest

Method conditionalRequest

src/HttpRequest.cc:419–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419bool HttpRequest::conditionalRequest() const
420{
421 if (!ifModSinceHeader_.empty()) {
422 return true;
423 }
424 for (auto& h : headers_) {
425 if (util::istartsWith(h, "if-modified-since") ||
426 util::istartsWith(h, "if-none-match")) {
427 return true;
428 }
429 }
430 return false;
431}
432
433} // namespace aria2

Callers 2

validateResponseMethod · 0.80

Calls 2

istartsWithFunction · 0.70
emptyMethod · 0.45

Tested by 1