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

Function fetch_head

src/fl/net/http/fetch.cpp.hpp:578–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578fl::task::Promise<Response> fetch_head(const fl::string& url, const FetchOptions& request) {
579 // Create a new request with HEAD method
580 FetchOptions head_request(url, RequestOptions("HEAD"));
581
582 // Apply any additional options from the provided request
583 const auto& opts = request.options();
584 head_request.timeout(opts.timeout_ms);
585 for (const auto& header : opts.headers) {
586 head_request.header(header.first, header.second);
587 }
588 if (!opts.body.empty()) {
589 head_request.body(opts.body);
590 }
591
592 return execute_fetch_request(url, head_request);
593}
594
595fl::task::Promise<Response> fetch_http_options(const fl::string& url, const FetchOptions& request) {
596 // Create a new request with OPTIONS method

Callers

nothing calls this directly

Calls 4

RequestOptionsClass · 0.85
execute_fetch_requestFunction · 0.85
headerMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected