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

Method WriteCached

library/cpp/http/io/stream.cpp:735–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733 }
734
735 inline void WriteCached() {
736 size_t buflen = 0;
737
738 {
739 TSizeCalculator out;
740
741 WriteCachedImpl(&out);
742 buflen = out.Length();
743 }
744
745 {
746 TBufferedOutput out(Slave_, buflen);
747
748 WriteCachedImpl(&out);
749 }
750
751 if (IsHttpRequest() && !HasRequestBody()) {
752 /*
753 * if this is http request, then send it now
754 */
755
756 Slave_->Flush();
757 }
758 }
759
760 inline bool SupportChunkedTransfer() const noexcept {
761 return Version_ >= 1100;

Callers

nothing calls this directly

Calls 2

LengthMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected