ducaale
27a10f400b
add support for nested json syntax
2022-02-05 18:59:34 +00:00
Jan Verbeek
59c431e349
Fix rustfmt
2022-02-01 23:13:39 +01:00
Mohamed Daahir
df10e5bd47
Remove redundant bit from error message
...
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2022-01-29 23:15:17 +00:00
ducaale
e49a6404cd
update request item errors
2022-01-23 14:23:10 +00:00
ducaale
5c95d8c424
update clap to v3
2022-01-23 14:23:09 +00:00
ducaale
4c5d36ea13
expand tilde in request items that contain a path
2021-12-03 22:26:34 +02:00
ducaale
1ed884f03b
raw bodies should never be empty
2021-11-29 18:44:00 +02:00
ducaale
9b7fcbfeb4
add support for --raw flag
2021-11-29 16:48:04 +02:00
Jan Verbeek
e6c8a050cf
Merge remote-tracking branch 'origin/develop' into native-tls
2021-08-05 21:33:56 +02:00
Jan Verbeek
25fec7251a
Rename request type → body type
2021-08-05 17:38:05 +02:00
Jan Verbeek
f8ea57bb95
Improve HTTPS + IP error message, refactor Cli/RequestItems
2021-08-05 17:38:05 +02:00
ducaale
b6de2a327a
Merge branch 'develop' into sessions
2021-08-03 01:23:06 +03:00
ducaale
6a0e9f6dfc
fix warning needless_borrow
2021-08-02 19:20:31 +03:00
ducaale
158e56f63b
Merge branch 'develop' into sessions
2021-07-24 19:35:14 +03:00
Jan Verbeek
1522e0fac7
Add ;filename= parameter for multipart uploads
2021-07-19 23:32:31 +02:00
ducaale
0ba627de4a
Merge branch 'develop' into sessions
2021-05-12 21:48:46 +01:00
Jan Verbeek
613d7bc2ba
Error on all field kinds in file-sourced body
2021-05-12 20:04:13 +02:00
Jan Verbeek
3eb0892b2f
Document and rearrange RequestItems::is_multipart
2021-05-12 20:02:19 +02:00
Jan Verbeek
38de30bd82
Support reading request body from file
2021-05-09 18:57:37 +02:00
ducaale
4f13a678a3
disable a false positive clippy error
2021-04-18 16:55:46 +01:00
ducaale
4ec0dd3feb
run cargo fmt
2021-04-17 16:30:52 +01:00
ducaale
5e5742e16d
allow setting unset headers
2021-04-17 15:35:47 +01:00
ducaale
8e4107ba84
WIP: add support for sessions
2021-04-11 16:15:08 +01:00
ducaale
62d2613bcf
run cargo fmt
2021-03-29 21:19:41 +01:00
ducaale
d47030298a
avoid wildcard match when possible
2021-03-29 20:43:58 +01:00
ducaale
7c0e1b936a
treat value from file as string for =@ seperator
2021-03-29 20:32:21 +01:00
ducaale
90dbf65333
run cargo fmt
2021-03-29 19:32:46 +01:00
ducaale
62a4511c20
Support reading DataField and JsonField from file
2021-03-29 19:17:31 +01:00
Jan Verbeek
e18f777f04
Fix clippy for 1.51
2021-03-26 12:02:51 +01:00
Jan Verbeek
e705015049
Make request_type non-optional
2021-03-01 14:57:21 +01:00
Jan Verbeek
eb9441671c
Improve error message for raw multipart body
2021-02-25 10:25:05 +01:00
Jan Verbeek
1caf80b802
Make --json/--form/--multipart override each other and force content-type
2021-02-23 21:47:10 +01:00
Jan Verbeek
4842c11c03
Add --curl flag to print equivalent curl command
2021-02-21 23:10:19 +01:00
Jan Verbeek
62d12e1482
Refactor request construction, print binary suppressor for request
2021-02-20 21:34:43 +01:00
Jan Verbeek
7d6a157521
Simple fixes from async code review
2021-02-20 00:10:48 +01:00
Jan Verbeek
947191937b
Merge remote-tracking branch 'origin/develop' into remove-async
2021-02-18 22:55:47 +01:00
Jan Verbeek
8e9c41a54a
Move RequestItem into request_items module
2021-02-18 22:39:46 +01:00
Jan Verbeek
849dc15642
Remove use of async
...
This also
- Reworks the printing system, making binary data detection and
trailing newlines more consistent
- Removes some obsolete dependencies from Cargo.toml
2021-02-17 20:56:40 +01:00
Jan Verbeek
028cbb0165
Bubble errors up to main() instead of panicking
...
In theory, all panics after this should be bugs instead of normal
error conditions.
The error reporting may still need finetuning. For example, if the
hostname doesn't resolve you get a redundant traceback:
```
Error: error sending request for url (http://bad-hostname/ ): error trying to connect: dns error: failed to lookup address information: Name or service not known
Caused by:
0: error trying to connect: dns error: failed to lookup address information: Name or service not known
1: dns error: failed to lookup address information: Name or service not known
2: failed to lookup address information: Name or service not known
```
This commit also fixes all of the remaining Clippy warnings.
Resolves #14 (?)
2021-02-07 20:59:07 +01:00
Jan Verbeek
3a91a4f11d
Add content length to file upload stream
...
This allows a Content-Length header to be sent, which some servers
require, e.g. warp.
Resolves #28 .
2021-02-07 13:49:48 +01:00
ducaale
6dd37972a9
run cargo clippy --fix
2021-02-07 12:32:24 +00:00
Samuel Marks
81c4da7bfd
[*.rs] rustfmt
2021-02-07 17:15:50 +11:00
ducaale
8b16e8f171
support setting form-file type
2021-02-05 22:23:40 +00:00
ducaale
62c51ad69e
run cargo fmt
2020-12-24 18:40:21 +03:00
ducaale
aea70041ee
move file to body logic to a function
2020-12-24 18:34:38 +03:00
ducaale
59cf42d5d4
add todo
2020-12-24 14:57:49 +03:00
ducaale
8501d29d2d
add filename to multipart request
2020-12-08 13:46:47 +00:00
ducaale
fc8445a89c
stream multipart requests
2020-12-06 15:54:17 +00:00
ducaale
900a4f9ccf
properly override headers when matching body
2020-12-04 22:13:17 +00:00
ducaale
59053bdbe5
simplify body_as_multipart
2020-12-04 21:40:38 +00:00