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

Function fetch_delete

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

Source from the content-addressed store, hash-verified

559}
560
561fl::task::Promise<Response> fetch_delete(const fl::string& url, const FetchOptions& request) {
562 // Create a new request with DELETE method
563 FetchOptions delete_request(url, RequestOptions("DELETE"));
564
565 // Apply any additional options from the provided request
566 const auto& opts = request.options();
567 delete_request.timeout(opts.timeout_ms);
568 for (const auto& header : opts.headers) {
569 delete_request.header(header.first, header.second);
570 }
571 if (!opts.body.empty()) {
572 delete_request.body(opts.body);
573 }
574
575 return execute_fetch_request(url, delete_request);
576}
577
578fl::task::Promise<Response> fetch_head(const fl::string& url, const FetchOptions& request) {
579 // Create a new request with HEAD 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