Commit Graph

12 Commits

Author SHA1 Message Date
Udhay-Adithya
8036d60615 feat: harden curl_parser, tolerate flags, improve output, and expand tests
- Pre-filter unknown flags before ArgParser; keep positional args.
- Tolerate non-request flags: -v/--verbose, --connect-timeout, --retry, --output, --compressed, -i/--include, --globoff.
- Auth: support --oauth2-bearer; map to - Authorization only if absent.
- Cookies: parse -b/--cookie; accept -c/--cookie-jar (ignored for request).
- URL: prefer first http(s) positional when --url missing; quote cleaning.
- Data: merge data-urlencode → data-raw → data-binary → data; default POST when body/form present; HEAD remains HEAD.
- Forms: parse -F entries; auto-set multipart Content-Type if missing.
- Headers: robust -H parsing for multi-colon values.
- toCurlString: deterministic order; fix continuation spacing; emit -d right after headers/form; place -k/-L at end.
- Utils: normalize backslash-newlines/CRLF; remove stray '+'; shlex split.
- Tests: add unknown flags, oauth2-bearer (and non-override), cookie-jar, verbose/timeout/retry/output tolerance, data merging order, HEAD+data, -A user-agent, -b filename.
- Docs: add Dartdoc for utils; class docs present.
2025-09-17 00:11:20 +05:30
Ashita Prasad
948cf90e65 Bug fix curl_parser 2025-05-25 14:10:14 +05:30
Ashita Prasad
c65ec20bbf Update curl_parser 2024-11-30 22:30:06 +05:30
Ashita Prasad
bbcca7ee40 Update curl_parser_test.dart 2024-11-30 14:24:02 +05:30
Ashita Prasad
835b1df03d update imports 2024-11-30 13:21:37 +05:30
Pratham
49e2b3d11e Adding back the GET tests 2024-11-26 01:15:49 +05:30
Pratham
c7b822223b Split the test file into 3 files 2024-11-26 01:13:18 +05:30
Pratham
2b950ad6cf Implemented FormData parsing in curl_parser and added tests for it. 2024-11-24 18:50:37 +05:30
Ashita Prasad
50d1e0af89 refactor curl_parser 2024-11-24 15:20:14 +05:30
Ashita Prasad
a5069db823 Update curl_parser_test.dart 2024-11-24 13:46:28 +05:30
Ashita Prasad
dc1320e766 Update curl_parser_test.dart 2024-11-24 06:13:06 +05:30
Ashita Prasad
5df562d73a Add curl_parser 2024-11-24 06:01:04 +05:30