Request options (matches JavaScript fetch RequestInit)
| 182 | |
| 183 | /// Request options (matches JavaScript fetch RequestInit) |
| 184 | struct RequestOptions { |
| 185 | fl::string method = "GET"; |
| 186 | fl_map<fl::string, fl::string> headers; |
| 187 | fl::string body; |
| 188 | int timeout_ms = 10000; // 10 second default |
| 189 | |
| 190 | RequestOptions() FL_NOEXCEPT = default; |
| 191 | RequestOptions(const fl::string& method_name) : method(method_name) {} |
| 192 | }; |
| 193 | |
| 194 | /// Fetch options builder (fluent interface) |
| 195 | class FetchOptions { |
no outgoing calls
no test coverage detected