This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
0.10.0
jonas-schievink
released this
22 Feb 21:05
·
102 commits
to master
since this release
Breaking changes
- Replace ad-hoc API with a
Transport
trait that can be implemented to change the way the request is sent - Stricter checking of server headers
- Removed the nested
Result
you get when performing a call - Restructure the
RequestError
type to better hide details the user shouldn't need to see - Rename
RequestError
to justError
to better match what other crates do - Removed the
RequestResult
type alias in favor of explicitly naming the result type
New Features
- Make the
reqwest
dependency optional - you can opt out and define your ownTransport
instead - Add
Request::call_url
, an easy to use helper that calls a&str
URL without needing to depend onreqwest
in downstream crates - Add the
http
module, containing a few helper methods for writing custom reqwest-basedTransport
s - Derive a few more useful traits (#34)
- Implement
From<i64>
forValue
(#33) - Add methods
Value::get
andValue::as_*
, implementstd::ops::Index
forValue
for convenient access to wrapped
data (#37).