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

Method get_header

src/fl/net/http/fetch.h:98–104  ·  view source on GitHub ↗

Get header value (like JavaScript response.headers.get())

Source from the content-addressed store, hash-verified

96
97 /// Get header value (like JavaScript response.headers.get())
98 fl::optional<fl::string> get_header(const fl::string& name) const {
99 auto it = mHeaders.find(name);
100 if (it != mHeaders.end()) {
101 return fl::make_optional(it->second);
102 }
103 return fl::nullopt;
104 }
105
106 /// Get content type convenience method
107 fl::optional<fl::string> get_content_type() const {

Callers

nothing calls this directly

Calls 3

make_optionalFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected