MCPcopy Create free account
hub / github.com/FastLED/FastLED / getHeader

Method getHeader

src/fl/stl/asio/http/http_parser.cpp.hpp:273–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273fl::optional<fl::string> HttpRequestParser::getHeader(const char* name) const {
274 fl::string lowerName = toLower(name);
275
276 for (const auto& pair : req().headers) {
277 if (toLower(pair.first) == lowerName) {
278 return pair.second;
279 }
280 }
281
282 return fl::nullopt;
283}
284
285//==============================================================================
286// HttpResponseParser

Callers

nothing calls this directly

Calls 1

toLowerFunction · 0.85

Tested by

no test coverage detected