Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

0.10.0

Compare
Choose a tag to compare
@jonas-schievink 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 just Error 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 own Transport instead
  • Add Request::call_url, an easy to use helper that calls a &str URL without needing to depend on reqwest in downstream crates
  • Add the http module, containing a few helper methods for writing custom reqwest-based Transports
  • Derive a few more useful traits (#34)
  • Implement From<i64> for Value (#33)
  • Add methods Value::get and Value::as_*, implement std::ops::Index for Value for convenient access to wrapped
    data (#37).