|
FastLED 3.10.8
|
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_NO_EXCEPT | |
| ~HttpResponseParser () FL_NO_EXCEPT | |
| void | feed (fl::span< const u8 > data) FL_NO_EXCEPT |
| size_t | getBufferSize () const FL_NO_EXCEPT |
| size_t | getContentLength () const FL_NO_EXCEPT |
| bool | getIsChunked () const FL_NO_EXCEPT |
| HttpResponsePtrConst | getResponse () FL_NO_EXCEPT |
| State | getState () const FL_NO_EXCEPT |
| bool | isComplete () const FL_NO_EXCEPT |
| void | reset () FL_NO_EXCEPT |
Private Member Functions | |
| void | consume (size_t n) FL_NO_EXCEPT |
| fl::optional< size_t > | findCRLF () const FL_NO_EXCEPT |
| fl::optional< fl::string > | getHeader (const char *name) const FL_NO_EXCEPT |
| void | parseBody () FL_NO_EXCEPT |
| bool | parseHeaders () FL_NO_EXCEPT |
| bool | parseStatusLine () FL_NO_EXCEPT |
| const HttpResponse & | resp () const FL_NO_EXCEPT |
| HttpResponse & | resp () FL_NO_EXCEPT |
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 |