Commit Graph

340 Commits

Author SHA1 Message Date
Fabrice Reix
99768edcff Encode string variable in JSON body 2022-06-21 15:15:21 +02:00
jcamiel
1c81471e45 Log response body if very verbose option is used. 2022-06-19 19:09:44 +02:00
jcamiel
75b34f8d9c Add very-verbose option. 2022-06-19 19:09:44 +02:00
jcamiel
e354efbb44 Update comments. 2022-06-19 19:09:44 +02:00
jcamiel
af253975b0 Use reference in function signatures. 2022-06-19 19:09:44 +02:00
jcamiel
cd444b07d0 Use minimal chrono features (to remove potential CVE in time crate) 2022-06-17 13:58:51 +02:00
jcamiel
bd92282b58 Update dependencies. 2022-06-17 11:49:40 +02:00
jcamiel
aa78be771a Update clap 3.2.4. 2022-06-17 10:53:54 +02:00
jcamiel
2235ca7bec Update READMEs 2022-06-13 09:04:29 +02:00
Fabrice Reix
e239891ffc Use Template type for cookie value 2022-06-12 21:35:12 +02:00
jcamiel
79c2f2b9be Format function docs. 2022-06-11 12:33:16 +02:00
jcamiel
e962de40b8 Move ResponseCookie, CookieAttribute to http module. 2022-06-11 12:33:16 +02:00
jcamiel
f52fb5c2bb Rename http/response_decoding/Encoding to http/response_decoding/ContentEncoding. 2022-06-11 12:33:16 +02:00
jcamiel
b938bd002e Rename http/http_decoding to http/response_decoding. 2022-06-11 12:33:16 +02:00
jcamiel
fad45bc189 Move encoding, is_html, text funtcion from runner/http_response to http/content_decoding. 2022-06-09 14:22:43 +02:00
jcamiel
922635d638 Use HttpError as error model for http package. 2022-06-09 14:22:43 +02:00
jcamiel
82fea8c04f Updated README from the canonical doc. 2022-06-01 10:34:33 +02:00
jcamiel
0e0b6697e7 Update dependencies. 2022-05-28 12:01:27 +02:00
jcamiel
87f86424b5 Use art ressources and delete svg ressources from docs. 2022-05-19 11:06:25 +02:00
jcamiel
d349f7f788 Fix certificate test message.
On with openssl 3.0.0, some messages have been changed.
For this test, I think this PR has updated our expected value: ade08735f9 (diff-1c0b5127081224cb77ee0fb3e3032c48227c476fca67312ae8c19efea9813e38R61)
2022-05-17 21:12:57 +02:00
jcamiel
68b3d3aec0 Modify unwrap_or_exit arguments order.
First something to unwrap, then message seems mire logical.
2022-05-17 15:36:18 +02:00
jcamiel
ef256c03f9 Update man. 2022-05-16 21:53:36 +02:00
jcamiel
68b0f17fd4 Update READMEs. 2022-05-12 18:33:28 +02:00
jcamiel
cf240a3921 Fix Brotli response body decoding. 2022-05-12 08:49:11 +02:00
jcamiel
7c6b03fc73 Fix implicit body asserts on compressed response body. 2022-05-11 17:36:48 +02:00
jcamiel
5c318c2656 Update clap 3.1.18. 2022-05-11 14:49:08 +02:00
jcamiel
9b81ac1a95 Fix sha256, md5, bytes query on compressed body. 2022-05-11 10:18:03 +02:00
jcamiel
16f501d2c3 Update to Rust edition 2021. 2022-05-09 15:37:04 +02:00
jcamiel
810089bd2a Fix redirection not followed with 'location' header. 2022-05-09 08:24:14 +02:00
jcamiel
0d6b1cb7a0 Move Content_encoding related functions from runner to http. 2022-05-09 08:23:01 +02:00
jcamiel
057814555d Fix log verbose case. 2022-05-08 15:56:11 +02:00
jcamiel
59b753e07b Update Cargo.toml (lock is already up-to-date). 2022-05-08 13:42:34 +02:00
jcamiel
56df761242 Update dependencies. 2022-05-06 20:14:40 +02:00
jcamiel
bc8b4d350c Update all depedencies with cargo update. 2022-05-06 15:55:24 +02:00
jcamiel
42c272669f Remove useless logs.
Also add a function doc, use a reference for argument and make function private.
2022-05-04 19:22:31 +02:00
jcamiel
e8fc1800f2 Update serde 1.0.81. 2022-05-04 13:53:39 +02:00
jcamiel
941bbc2e36 Update serde 1.0.137 2022-05-02 17:48:15 +02:00
jcamiel
cfc2587e0a Add missing prefix for Hurl version output. 2022-04-29 19:26:40 +02:00
Fabrice Reix
67ad5a5130 Use canonical relative path for generating html Hurl file 2022-04-29 14:42:54 +02:00
jcamiel
b81ca8ab7e Update README. 2022-04-14 00:09:10 +02:00
Fabrice Reix
4b3b47841d Fix shell escape encoding for curl export 2022-04-12 07:51:35 +02:00
Fabrice Reix
2f1154fb02 Fix clippy 1.60 warnings 2022-04-10 06:48:23 +02:00
jcamiel
c67413bcef Update GitHub and crates.io README. 2022-04-01 14:43:20 +02:00
jcamiel
b34518674a Update brotli 3.3.4. 2022-04-01 13:50:14 +02:00
jcamiel
9bae7b9f43 Update indexmap 1.8.1. 2022-04-01 13:50:14 +02:00
jcamiel
33960bddcc Update libxml 0.3.1. 2022-03-28 18:04:50 +02:00
jcamiel
15e94828ee Fix panicking while processing expected Regex value. 2022-03-25 14:52:39 +01:00
jcamiel
4f5cfc0f1f Update libflate 1.2.0. 2022-03-25 14:22:17 +01:00
Fabrice Reix
6f7909b5b3 Add test for debugging 2022-03-24 14:10:45 +01:00
Fabrice Reix
19a4a6042b Support @ for the username in [BasicAuth] section 2022-03-23 07:39:53 +01:00
jcamiel
f461c19b7d Update curl 0.4.43. 2022-03-22 11:59:27 +01:00
jcamiel
890faa3a5d Add todo comments. 2022-03-21 20:08:29 +01:00
Jeff Leverenz
fa567a92a1 Generalize tests for curl timeout error codes 2022-03-21 19:10:58 +01:00
jcamiel
7dee6d89bc Fix format. 2022-03-14 17:18:37 +01:00
jcamiel
a3fe70b4c8 Add namespace support for XPath query against XML document. 2022-03-14 17:18:37 +01:00
Fabrice Reix
ce66121d03 Allow different types in JSON array 2022-03-10 15:54:40 +01:00
Fabrice Reix
5f1943bb99 Update crate regex to 1.5.5 2022-03-10 12:50:18 +01:00
jcamiel
349097ffb3 Fix clippy 1.59 warnings.
Mainly https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern.
2022-02-25 08:17:53 +01:00
jcamiel
68391e924f Update cc 1.0.73 2022-02-22 10:30:56 +01:00
jcamiel
becb581197 Update sha2 0.10.2 2022-02-22 10:30:56 +01:00
jcamiel
e5ea756fe4 Update GitHub and crates.io README. 2022-02-15 23:49:55 +01:00
jcamiel
558fea0324 Update crate README. 2022-02-15 10:31:10 +01:00
jcamiel
490e07cade Sort options alphabetically in -h/man. 2022-02-15 10:05:42 +01:00
jcamiel
51dedfed14 Split integration tests between tests_ok / tests_failed repository. 2022-02-14 16:24:39 +01:00
jcamiel
28dfd9ef94 Update serde_json 1.0.79. 2022-02-14 13:16:11 +01:00
Fabrice Reix
9bcc6f68af Increment version to 1.7.0-snapshot 2022-02-10 14:22:16 +01:00
Fabrice Reix
b52bc56ea5 Create release 1.6.0 2022-02-10 14:22:16 +01:00
Fabrice Reix
c8eebcfd7b Add additional characters in cookie value 2022-02-09 15:38:23 +01:00
jcamiel
bb44a06a86 Add missing copyrights. 2022-02-08 21:22:41 +01:00
jcamiel
fc661c6f68 Fix unit test. 2022-02-05 17:30:10 +01:00
jcamiel
35fbdb3d8e Fix format. 2022-02-05 17:30:10 +01:00
jcamiel
0177dc1b43 Check that data file is a child of user provided context dir. 2022-02-05 17:30:10 +01:00
jcamiel
77193af6ed Delete deprecated html report options. 2022-02-02 09:12:50 +01:00
Fabrice Reix
b83bbf67ed Add Regex predicate value 2022-01-29 15:59:55 +01:00
Fabrice Reix
45b15e8b7f Remove warnings for Windows 2022-01-29 10:36:15 +01:00
jcamiel
dab0b66ec7 Use Path/PathBuf struct when appropriates.
We use PathBuf in ClientOptions, and RunnerOptions an &Path in functions if possible.
2022-01-28 10:46:46 +01:00
Fabrice Reix
39410eea0f Update crate serde to 1.0.136 2022-01-26 09:28:01 +01:00
Fabrice Reix
757043633b Update crate libflate to 1.1.2 2022-01-26 09:27:53 +01:00
Fabrice Reix
c0b1acb5eb Add square brackets in key-string 2022-01-25 17:14:07 +01:00
jcamiel
df9c081605 Update dependencies serde 1.0.135 et serde_json 1.0.78 2022-01-24 16:46:35 +01:00
jcamiel
e55030816f Use reference in eval_template_element. 2022-01-24 16:39:06 +01:00
jcamiel
96b861191e Use reference in eval_template. 2022-01-24 16:39:06 +01:00
jcamiel
771fc97dc3 Fix doc tests. 2022-01-21 18:35:19 +01:00
jcamiel
3ef65a59f8 Use default value for ClientOptions. 2022-01-21 18:35:19 +01:00
jcamiel
3c361d7e70 Remove unnecessary clone. 2022-01-21 18:35:19 +01:00
jcamiel
8b1fd13f90 Add optional user agent to executed request or default. 2022-01-21 18:35:19 +01:00
jcamiel
e47fd99191 Add user_agent field to CliOption. 2022-01-21 18:35:19 +01:00
jcamiel
2f16ab414c Update serde 1.0.134 2022-01-21 16:01:40 +01:00
jcamiel
77b1d30408 Delete unnecessary clone. 2022-01-19 09:56:28 +01:00
jcamiel
e9d2989369 Update serde_json 1.0.75 2022-01-16 19:44:56 +01:00
jcamiel
d48e3675ff Use reference and string slice in get_header_values. 2022-01-16 19:44:40 +01:00
jcamiel
df38771685 Use default value for ClientOptions initialisations in tests. 2022-01-15 20:57:29 +01:00
jcamiel
171bc5b9aa Use from_secs build function. 2022-01-15 20:57:29 +01:00
jcamiel
e129d8fbc1 Update brotli 3.3.3 2022-01-15 20:54:00 +01:00
jcamiel
d90c891e47 Fix new clippy warnings on 1.58.
Mainly unnecessary calls to to_string on types that implements Display traits <https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args>.
2022-01-14 14:22:36 +01:00
Fabrice Reix
04ab5edadd Update crate curl to 0.4.42 2022-01-12 18:28:30 +01:00
Fabrice Reix
3f8d291857 Update crate indexmap to 1.8.0 2022-01-12 18:28:30 +01:00
Fabrice Reix
56f0a2c82b Display next request in Interactive mode 2022-01-12 18:15:54 +01:00
jcamiel
a3a500baae Update copyright for 2022 2022-01-12 17:14:40 +01:00
Fabrice Reix
e4742b11c9 Update crate sha2 to 0.10.1 2022-01-07 21:08:06 +01:00