|
FastLED 3.10.8
|
Definition at line 41 of file http_parser.h.
#include <http_parser.h>
Collaboration diagram for fl::HttpRequestParser:Public Types | |
| enum | State { READ_REQUEST_LINE , READ_HEADERS , READ_BODY , COMPLETE } |
Public Member Functions | |
| HttpRequestParser () FL_NO_EXCEPT | |
| ~HttpRequestParser () 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 |
| HttpRequestPtrConst | getRequest () 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 | parseRequestLine () FL_NO_EXCEPT |
| const HttpRequest & | req () const FL_NO_EXCEPT |
| HttpRequest & | req () FL_NO_EXCEPT |
Private Attributes | |
| fl::vector< u8 > | mBuffer |
| fl::shared_ptr< net::http::ChunkedReader > | mChunkedReader |
| size_t | mContentLength |
| bool | mIsChunked |
| fl::shared_ptr< HttpRequest > | mRequest |
| State | mState |