MCPcopy Create free account
hub / github.com/catboost/catboost / HasResponseBody

Method HasResponseBody

library/cpp/http/io/stream.cpp:640–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638 }
639
640 inline bool HasResponseBody() const noexcept {
641 if (IsHttpResponse()) {
642 if (Request_ && Request_->FirstLine().StartsWith(TStringBuf("HEAD")))
643 return false;
644 if (FirstLine_.size() > 9 && strncmp(FirstLine_.data() + 9, "204", 3) == 0)
645 return false;
646 return true;
647 }
648 return false;
649 }
650
651 inline bool IsHttpResponse() const noexcept {
652 return IsResponse(FirstLine_);

Callers

nothing calls this directly

Calls 3

StartsWithMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected