MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / nextPart

Method nextPart

base/poco/Net/src/MultipartReader.cpp:195–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195void MultipartReader::nextPart(MessageHeader& messageHeader)
196{
197 if (!_pMPI)
198 {
199 if (_boundary.empty())
200 guessBoundary();
201 else
202 findFirstBoundary();
203 }
204 else if (_pMPI->lastPart())
205 {
206 throw MultipartException("No more parts available");
207 }
208 parseHeader(messageHeader);
209 _pMPI = std::make_unique<MultipartInputStream>(_istr, _boundary);
210}
211
212
213bool MultipartReader::hasNextPart()

Callers

nothing calls this directly

Calls 3

parseHeaderFunction · 0.85
lastPartMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected