| 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_); |
nothing calls this directly
no test coverage detected