Commit Graph

304 Commits

Author SHA1 Message Date
Jean-Christophe Amiel
36203a3c78
Fix reading standard input multiple times 2024-10-30 15:05:49 +01:00
Jean-Christophe Amiel
fa7539b63d
Add limit-rate per request. 2024-10-28 17:58:10 +00:00
Jean-Christophe Amiel
fa34ee782b
Implement --limit-rate from curl 2024-10-28 15:31:11 +01:00
Jean-Christophe Amiel
1efd816035
Update to Rust 1.82. 2024-10-25 07:26:03 +02:00
Jean-Christophe Amiel
2eb7d02d4e
Add support for backtick strings in predicates values.
We are now able to support this code:

```
GET http://foo.com
HTTP 200
[Asserts]
xpath "string(//title)" == `Bob says: "Hi"`
```
2024-10-24 15:31:13 +02:00
Zikani Nyirenda Mwase
d7fe2318c9
feat: add connect-timeout option per request
Added a connect-timeout option to allow users to specify a
connect-timeout for each request in a hurl file.

Closes #3163
2024-10-18 08:51:42 +00:00
Fabrice Reix
b896ffb938
Fix filename parsing (used by cert option) 2024-09-28 18:09:15 +02:00
Jean-Christophe Amiel
3c1fbe572d
Implements short syntax for [Form], [Query], [Multipart]. 2024-09-19 10:08:18 +00:00
Fabrice Reix
298d0eea0c
Check that variables do not conflict with existing functions 2024-09-15 08:44:38 +02:00
Fabrice Reix
20c1f4bf74
Add minute unit for duration 2024-08-27 13:31:47 +02:00
Jean-Christophe Amiel
730b4f6f98
Fix embedded CSS. 2024-08-27 09:16:31 +02:00
Jean-Christophe Amiel
48fcce6090
Remove colored depedency in hurlfmt 2024-08-20 17:01:35 +02:00
Fabrice Reix
65a459996d
Parse duration with unit in the cli options 2024-08-10 14:10:25 +02:00
Fabrice Reix
7969910f3d
Add optional duration unit for options 2024-08-07 13:39:43 +00:00
Fabrice Reix
d3bcd4ec4a
Parse/export Multiline attributes 2024-08-05 17:31:39 +02:00
Fabrice Reix
2385cba3ff
Only use only one backtick for oneline string 2024-08-05 12:55:55 +02:00
Fabrice Reix
f57b5d8ad3
Update Rust 1.80.0 2024-08-02 12:05:49 +00:00
Fabrice Reix
33fc97f4ba
Add attributes to MultilineString AST 2024-08-01 10:30:08 +02:00
Jean-Christophe Amiel
3d88762c59
Add some comments on error construction. 2024-07-23 15:41:55 +02:00
Jean-Christophe Amiel
cf005a13fa
Replace split_lines function by str::lines. 2024-07-23 14:46:05 +02:00
Jean-Christophe Amiel
d9293cfbca
Make some functions private. 2024-07-23 14:12:01 +02:00
Viktor Szépe
1c4679a724
Revert a fix in an assertion 2024-07-18 14:31:29 +00:00
Viktor Szépe
67e5f22a7d
Fix typos 2024-07-18 14:31:28 +00:00
Jean-Christophe Amiel
01063a1c24
Fix max-redirs: -1 in [Options] section 2024-07-11 15:56:49 +02:00
Jean-Christophe Amiel
cf1385e423
Remove dead code. 2024-07-11 13:11:28 +02:00
Jean-Christophe Amiel
1a65170cef
Mutualise crate colored initialization. 2024-07-11 10:40:54 +02:00
Jean-Christophe Amiel
3f2f91fe3f
Rename Reader offset to index. 2024-07-11 09:36:04 +02:00
Jean-Christophe Amiel
e15dba8128
Move Input to hurl_core and use Input in hurlfmt. 2024-07-10 17:05:31 +02:00
Jean-Christophe Amiel
690c2c7852
Sort import. 2024-07-08 12:21:23 +02:00
Jean-Christophe Amiel
1cdc491867
Unify Retry and Repeat types with Count. 2024-07-06 23:02:51 +02:00
Jean-Christophe Amiel
25d6716145
Improve coverage on options section. 2024-07-06 21:52:41 +02:00
Fabrice Reix
6913ce92e2
Display text body assert errors as diff 2024-07-05 08:52:02 +02:00
Jean-Christophe Amiel
decac0a685
Remove some unncessary clones. 2024-07-03 16:32:02 +02:00
Jean-Christophe Amiel
fb96eb3163
Use slice in any_char function param. 2024-07-02 10:00:31 +02:00
Jean-Christophe Amiel
b484ef8125
Some cosmetic changes on Reader. 2024-07-01 16:52:20 +02:00
Jean-Christophe Amiel
76b45a1ed1
Make Reader fields private. 2024-07-01 16:17:32 +02:00
Jean-Christophe Amiel
e7a6544494
Implement Reader::with_pos constructor. 2024-07-01 14:35:43 +02:00
Jean-Christophe Amiel
032a686422
Rename state: ReaderState to cursor: Cursor on reader.
There is no code change, only automatic refacto.
2024-07-01 13:54:55 +02:00
Jean-Christophe Amiel
42879603e2
Add reader test unit. 2024-07-01 13:54:55 +02:00
Fabrice Reix
89f7313ce6
Rename OutputFormat Variant to Plain 2024-07-01 13:13:56 +02:00
Jean-Christophe Amiel
8554f74bdd
Extract combinator from Hurl parser and use generic for Error. 2024-07-01 11:50:27 +02:00
Fabrice Reix
c49a89dd07
Move error_string to DisplaySourceError to_string 2024-06-30 08:42:55 +00:00
Jean-Christophe Amiel
b9342678a0
Delete unused Reader method. 2024-06-28 17:03:08 +02:00
Jean-Christophe Amiel
345e98c72c
Move hurl_core::ast::Pos to hurl_core::reader::Pos 2024-06-28 16:47:06 +02:00
Jean-Christophe Amiel
7743be6d0a
Move typing module. 2024-06-28 15:51:09 +02:00
Jean-Christophe Amiel
e8355a7e1d
Extract reader from parser module. 2024-06-28 12:50:56 +02:00
Fabrice Reix
37d836388c
Fix empty JSON key parsing 2024-06-24 21:51:59 +02:00
Jean-Christophe Amiel
6546d11cf8
Add wrap method on StyleString to limit maximum width of lines. 2024-06-24 09:09:16 +02:00
Fabrice Reix
ef2a85d7e7
Use different error string output for Terminal and JSON 2024-06-21 12:53:13 +00:00
Fabrice Reix
9054a3434e
Include line number prefix in DisplaySourceError message 2024-06-21 12:53:12 +00:00