Commit Graph

183 Commits

Author SHA1 Message Date
jcamiel
bc1303552a
Add isNumber predicate 2024-03-28 11:12:30 +01:00
jcamiel
32a73ce7a4
Support --user option per request 2024-03-26 15:54:14 +01:00
jcamiel
f68bcc8eb3
Add isIsoDate predicate (take a string and checks YYYY-MM-DDTHH:mm:ss.sssZ) 2024-03-21 15:46:53 +01:00
jcamiel
9444d6a058
Fix filename templatization bug under certains conditions. 2024-03-18 08:44:09 +00:00
jcamiel
f46f469f8b
Implements Display for CliOptionsError. 2024-03-14 14:00:05 +01:00
Fabrice Reix
1da6e1c6d4
Add Missing quote in Hurl export 2024-03-13 17:27:41 +00:00
Fabrice Reix
b74bb8f7c7
Use input_format option (instead of deprecated format) 2024-03-12 09:08:39 +00:00
Fabrice Reix
84baecf464
Add semicolon_if_nothing_returned clippy lint 2024-02-29 08:33:24 +01:00
jcamiel
7a943158dc
Update copyright from 2023 -> 2024. 2024-02-24 20:22:26 +01:00
Fabrice Reix
3c9df78960
Update to Rust 1.76.0 2024-02-09 08:07:01 +01:00
Fabrice Reix
5dc379cd0e
Specify generator script in the generated file 2024-01-23 16:03:29 +01:00
Teodorescu Robert-Andrei
c6bc18570d
Add --netrc, --netrc-file and --netrc-optional options
This is a feature provided by cURL that allows it to retrieve the
username and password for a host from a .netrc file.

https://curl.se/docs/manpage.html#-n
2024-01-23 12:32:14 +00:00
Fabrice Reix
2a26671edf
Update options generator scripts 2024-01-22 11:29:38 +00:00
Fabrice Reix
cda3770092
Generate hurlfmt options source/doc from spec 2024-01-22 11:29:37 +00:00
Fabrice Reix
bb539ddad7
Add --location-trusted option 2024-01-07 13:41:01 +01:00
Zandt Tittle
98b0f50741
Add --unix-socket option
This is a feature provided by cURL that allows sending requests to
a web server via a Unix Domain Socket. Some use cases
include:

* Querying docker API
* Running a web server w/o opening a TCP port for security and/or performance reasons

https://curl.se/docs/manpage.html#--unix-socket
2024-01-06 13:05:58 -06:00
Fabrice Reix
6ac325d879
Use Template for filename type 2024-01-06 09:14:16 +01:00
Fabrice Reix
112d0e9457
Change StringNumber to BigInteger 2023-12-14 19:59:06 +00:00
Fabrice Reix
d42fb9bc95
Add file predicate value 2023-12-09 11:28:08 +01:00
Fabrice Reix
29453534bb
Fix JSON export for max-redirs, retry and retry-interval 2023-12-08 15:05:58 +00:00
jcamiel
53d174588c
Add --output option per request 2023-11-30 16:59:24 +01:00
jcamiel
597127f568
Change JValue::format to take &self instead of self. 2023-11-28 09:52:53 +01:00
jcamiel
9fc9bee091
Optimize some clone() calls. 2023-11-28 09:49:46 +01:00
jcamiel
a8e7fe92ba
Create new on SourceInfo and Pos. 2023-11-27 16:42:33 +01:00
jcamiel
ce245c2559
Delete useless clone. 2023-11-27 13:24:28 +01:00
jcamiel
5f79ddb5e0
Implement copy for SourceInfoand Pos. 2023-11-24 14:14:12 +01:00
jcamiel
a525aeb81f
Sort import.
Run cargo +nightly fmt with rsutfm.toml uncommented.
2023-11-16 06:48:16 +01:00
Fabrice Reix
f280332875
Add Number in AST/PredicateValue 2023-11-12 12:27:28 +01:00
Fabrice Reix
b62a09f887
Fix xpath filter in JSON output 2023-11-08 15:18:57 +01:00
Fabrice Reix
74edc18bd2
Add jsonpath filter 2023-11-08 15:18:52 +01:00
robozati
21235c655e
Add SourceInfo to Comment 2023-10-23 22:07:32 +00:00
Fabrice Reix
ada42acb32
Add option skip 2023-10-21 11:04:01 +02:00
Fabrice Reix
58b249ffa1
Support template in option values 2023-10-19 14:42:50 +00:00
jcamiel
662c550eb8
Add --ipv4/--ipv6 option 2023-10-18 14:37:42 +00:00
jcamiel
4ae0465839
Add integration test for hurl --help. 2023-10-09 18:13:03 +02:00
jcamiel
1986c0ca13
Add --http3 option. 2023-10-08 17:25:00 +02:00
jcamiel
b4e53f1489
Add --http2 option. 2023-10-08 14:38:35 +00:00
Fabrice Reix
aeca943cf7
Support template in keys 2023-10-06 10:18:52 +02:00
jcamiel
9623b76409
Add http1.1 per request option. 2023-10-04 14:42:47 +02:00
jcamiel
17ec6c8b1a
Add --http1.0 per request option. 2023-10-03 12:58:11 +02:00
Fabrice Reix
da233dbd7a
Fix clippy warnings 2023-08-31 11:36:52 +02:00
Philipp Paulweber
66d0daf4a2
Formatter: fixed missing delayy option kind 2023-08-27 16:15:37 +02:00
apparentorder
56d4fa4485
Add the aws-sigv4 option to generate AWS SigV4 signed requests
AWS SigV4 support is available in curl since 7.75.0 (December 2020).

Add the necessary bits for Hurl to understand this option and pass
it on to libcurl, both as a command line option `--aws-sigv4` and
as a per-request option `aws-sigv4` in Hurlfiles.

Do not emit `Authorization: Basic` when aws-sigv4 is used, as this
would take priority over the `Authorization` header generated by libcurl.
Instead, explicitly set `username` and `password` options.

Suppress removal of the `Expect:` header when using aws-sigv4, as a
workaround for curl/curl#11664.

Add a corresponding integration test.
2023-08-24 15:18:53 +02:00
Fabrice Reix
4b83f77fa9
Fix standalone option for hurlfmt HTML output 2023-08-11 14:25:50 +02:00
Fabrice Reix
73759aa84b
Add clippy check manual_string_new 2023-08-08 15:59:20 +00:00
Fabrice Reix
bd2c886f25
Support empty BasicAuth section 2023-08-05 09:35:19 +02:00
jcamiel
bdd4ff7b14
Remove strict features flag (in favor of clippy check). 2023-08-03 18:21:33 +02:00
jcamiel
4072ea2c8a
Remove unnecessary empty structs. 2023-08-03 14:08:08 +02:00
jcamiel
975fd95810
Delete countEquals predicate. 2023-07-27 14:37:33 +02:00
jcamiel
7076961308
Add connect-to per request option. 2023-07-15 13:38:35 +00:00