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

Function fetch_http_options

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

Source from the content-addressed store, hash-verified

593}
594
595fl::task::Promise<Response> fetch_http_options(const fl::string& url, const FetchOptions& request) {
596 // Create a new request with OPTIONS method
597 FetchOptions options_request(url, RequestOptions("OPTIONS"));
598
599 // Apply any additional options from the provided request
600 const auto& opts = request.options();
601 options_request.timeout(opts.timeout_ms);
602 for (const auto& header : opts.headers) {
603 options_request.header(header.first, header.second);
604 }
605 if (!opts.body.empty()) {
606 options_request.body(opts.body);
607 }
608
609 return execute_fetch_request(url, options_request);
610}
611
612fl::task::Promise<Response> fetch_patch(const fl::string& url, const FetchOptions& request) {
613 // Create a new request with PATCH 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