MCPcopy Create free account
hub / github.com/FastLED/FastLED / getResponse

Method getResponse

src/fl/stl/asio/http/http_parser.cpp.hpp:369–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369HttpResponsePtrConst HttpResponseParser::getResponse() {
370 if (mState != COMPLETE) {
371 return HttpResponsePtr();
372 }
373
374 // Hand off the shared_ptr (zero-copy) and allocate a fresh one for next parse
375 HttpResponsePtr result = mResponse;
376 reset();
377 return result;
378}
379
380void HttpResponseParser::reset() {
381 mState = READ_STATUS_LINE;

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 1

resetFunction · 0.50

Tested by

no test coverage detected