| 193 | |
| 194 | |
| 195 | void 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 | |
| 213 | bool MultipartReader::hasNextPart() |
nothing calls this directly
no test coverage detected