|
FastLED 3.9.15
|
Definition at line 104 of file http_parser.h.
#include <http_parser.h>
Collaboration diagram for fl::HttpResponseParser:Public Types | |
| enum | State { READ_STATUS_LINE , READ_HEADERS , READ_BODY , COMPLETE } |
Public Member Functions | |
| HttpResponseParser () FL_NOEXCEPT | |
| ~HttpResponseParser () FL_NOEXCEPT | |
| void | feed (fl::span< const u8 > data) |
| size_t | getBufferSize () const |
| size_t | getContentLength () const |
| bool | getIsChunked () const |
| HttpResponsePtrConst | getResponse () |
| State | getState () const |
| bool | isComplete () const |
| void | reset () |
Private Member Functions | |
| void | consume (size_t n) |
| fl::optional< size_t > | findCRLF () const |
| fl::optional< fl::string > | getHeader (const char *name) const |
| void | parseBody () |
| bool | parseHeaders () |
| bool | parseStatusLine () |
| HttpResponse & | resp () |
| const HttpResponse & | resp () const |
Private Attributes | |
| fl::vector< u8 > | mBuffer |
| fl::shared_ptr< net::http::ChunkedReader > | mChunkedReader |
| size_t | mContentLength |
| bool | mIsChunked |
| fl::shared_ptr< HttpResponse > | mResponse |
| State | mState |