Commit Graph

11 Commits

Author SHA1 Message Date
Ankit Mahato
b5931d3052 Update dependencies 2025-09-28 20:30:17 +05:30
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
bd7b1e5e3a fixes 2024-11-30 16:08:09 +05:30
Ashita Prasad
47ab117bfb Update curl.dart 2024-11-30 09:02:45 +05:30
Ashita Prasad
da1d0efc76 minor refactor 2024-11-30 08:55:35 +05:30
Ashita Prasad
bbe552d437 Update curl.dart 2024-11-30 08:48:47 +05:30
Pratham
166c9286f9 Fixed a bug in toCurlString() and fixed the dart_to_curl_test with valid curls. 2024-11-26 12:25:16 +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