MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / ChunkedBodyReadStream

Method ChunkedBodyReadStream

net/http/body.cpp:115–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113class ChunkedBodyReadStream : public BodyReadStream {
114public:
115 ChunkedBodyReadStream(net::ISocketStream *stream, std::string_view body) :
116 BodyReadStream(stream, body, 0) {
117 m_line_size = body.size();
118 m_get_line_buf = (char*)body.data();
119 }
120 int close() override {
121 if (!m_finish) return -1;
122 return 0;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected