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

◆ findCRLF()

fl::optional< size_t > fl::HttpRequestParser::findCRLF ( ) const
private

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

254 {
255 for (size_t i = 0; i + 1 < mBuffer.size(); i++) {
256 if (mBuffer[i] == '\r' && mBuffer[i + 1] == '\n') {
257 return i;
258 }
259 }
260 return fl::nullopt;
261}
fl::vector< u8 > mBuffer
Definition http_parser.h:75
constexpr nullopt_t nullopt
Definition optional.h:13

References mBuffer, and fl::nullopt.

Referenced by parseHeaders(), and parseRequestLine().

+ Here is the caller graph for this function: