FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getResponse()

HttpResponsePtrConst fl::HttpResponseParser::getResponse ( )

Definition at line 369 of file http_parser.cpp.hpp.

369 {
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
376 reset();
377 return result;
378}
fl::shared_ptr< HttpResponse > mResponse
fl::shared_ptr< HttpResponse > HttpResponsePtr
Definition http_parser.h:36
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References COMPLETE, mResponse, mState, and reset().

Referenced by ~HttpResponseParser().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: