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

Function detects_curl_prefix

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

Source from the content-addressed store, hash-verified

394 fn parses_simple_get() {
395 let parsed = parse_curl("curl https://api.example.com/users").unwrap();
396 assert_eq!(parsed.method, HttpMethod::Get);
397 assert_eq!(parsed.url, "https://api.example.com/users");
398 assert!(parsed.headers.is_empty());
399 assert!(matches!(parsed.body, RequestBody::None));
400 }
401
402 #[test]
403 fn parses_explicit_method() {
404 let parsed = parse_curl("curl -X DELETE https://api.example.com/users/1").unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected