(value: &str)
| 178 | let body = build_body(&data_parts, &form_parts, &headers); |
| 179 | |
| 180 | let method = if force_get { |
| 181 | HttpMethod::Get |
| 182 | } else { |
| 183 | method.unwrap_or_else(|| { |
| 184 | if !matches!(body, RequestBody::None) { |
| 185 | HttpMethod::Post |
| 186 | } else { |
| 187 | HttpMethod::Get |
| 188 | } |
| 189 | }) |
| 190 | }; |
| 191 | |
| 192 | Ok(ParsedCurl { |
| 193 | method, |
| 194 | url, |