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

Function get_flag_moves_data_into_query_string

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

Source from the content-addressed store, hash-verified

510 parse_curl("curl -G 'https://api.test/search?existing=1' --data 'q=abc'").unwrap();
511 assert_eq!(parsed.url, "https://api.test/search?existing=1&q=abc");
512 assert!(matches!(parsed.body, RequestBody::None));
513 }
514
515 #[test]
516 fn form_field_with_at_prefix_is_file_upload() {
517 let parsed =
518 parse_curl("curl https://api.test -F 'avatar=@/tmp/a.png' -F 'name=alice'").unwrap();
519 match &parsed.body {
520 RequestBody::MultipartFormData(fields) => {

Callers

nothing calls this directly

Calls 1

parse_curlFunction · 0.85

Tested by

no test coverage detected