replace hyper
v0.10 with ureq
#13
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hyper
v0.10 is extremely outdated, the current release is v1.6. this old version pulls in vulnerable dependencies (incl.hyper
v0.10 itself).rather than upgrading to
hyper
v1.6 i opted to replace it withureq
since this crate here is notasync
andhyper
v1 is completelyasync
. due to the very limited amount of features needed fromhyper
(just executing HTTP POST requests) it can instead be replaced with the much simplerureq
crate.i initially opted for
reqwest
, howeverreqwest
is primarilyasync
(and useshyper
underneath). while it offers ablocking
layer this causes major issues when integrating it further up the stack in anasync
context as also stated by thereqwest::blocking
docs.this is a breaking change for consumers since the URLs can now just be passed as strings rather than having to call
.parse()?
on the string.note that this is similar to, but not the same as, #8 and #11.
fixes #9