MCPcopy Create free account
hub / github.com/bajrangCoder/setu / parses_simple_get

Function parses_simple_get

src/utils/curl_parser.rs:404–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

402 #[test]
403 fn parses_explicit_method() {
404 let parsed = parse_curl("curl -X DELETE https://api.example.com/users/1").unwrap();
405 assert_eq!(parsed.method, HttpMethod::Delete);
406 assert_eq!(parsed.url, "https://api.example.com/users/1");
407 }
408
409 #[test]
410 fn parses_headers_and_json_body() {
411 let cmd = r#"curl -X POST 'https://api.example.com/users' \
412 -H 'Content-Type: application/json' \
413 -H 'Accept: application/json' \

Callers

nothing calls this directly

Calls 1

parse_curlFunction · 0.85

Tested by

no test coverage detected