| 593 | } |
| 594 | |
| 595 | fl::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 | |
| 612 | fl::task::Promise<Response> fetch_patch(const fl::string& url, const FetchOptions& request) { |
| 613 | // Create a new request with PATCH method |
nothing calls this directly
no test coverage detected