Skip to content

Releases: neonmoe/minreq

2.12.0

16 Jul 16:01
Compare
Choose a tag to compare

A new convenience function, Request::with_headers! And in maintenance news, I added a schedule for the msrv job, so hopefully I'll notice it failing when it starts failing rather than on every new pull request.

Added

  • Request::with_headers, to allow passing in many headers at a time. Thanks for the idea and PR, @rawhuul! (#110)

2.11.2

26 Apr 19:27
Compare
Choose a tag to compare

Just a bump for a dev dependency. Unless your build process benefits from this, probably not too relevant.

Fixed

  • The dev dependency tiny_http's version up to 0.12. Thanks for the PR, @davide125! (#107)

2.11.1

02 Apr 21:15
Compare
Choose a tag to compare

Bugfixes and performance upgrades this time.

Fixed

  • Unnecessary buffering causing performance problems. Thanks for the PRs, @mrkline! (#102, #103)
  • Connections failing if the first resolved address fails to connect (even if there's more to try). Thanks for the PR, @darosior! (#106)

2.11.0

17 Oct 17:24
Compare
Choose a tag to compare

Nothing new in this version for those who don't care about the MSRV. For those who do, sorry, the crate no longer compiles out-of-the box with the newest versions of dependencies that Cargo resolves, so you need to pin some version in your Cargo.lock a bit lower. Instructions in the readme!

Changed

  • Removed upper bounds on the serde_json, log and chrono dependencies (dev-dependency in the case of chrono). If you were depending on minreq compiling with the MSRV compiler without any issues, check out the MSRV section in the readme, it's been updated with additional instructions. Thanks for the report, @RCasatta! (#99)

2.10.0

05 Sep 20:27
Compare
Choose a tag to compare

Three years into this major release, and I'm still finding new and exciting features of HTTP! Turns out, requests should not contain fragments, and the semantics about replacing fragments from the original url with the redirects' fragment are only relevant if the user agent wants to see the "final version" of the URL. Thus, minreq no longer sends the fragment in the request, and now responses have an url field.

Fixed

  • Fragment handling, once again. Turns out you're not supposed to include fragments in the request. This may break usage with servers that are written with the wrong assumptions. Thanks for the report, @rawhuul! (#100)

Added

  • Response::url and ResponseLazy::url fields, to contain the final URL after redirects and fragment replacement semantics.

2.9.1

28 Aug 14:22
Compare
Choose a tag to compare

Changed

  • Loosened the rustls version requirement from 0.21.6 to 0.21.1.

2.9.0

24 Aug 16:31
Compare
Choose a tag to compare

Dependency cleanup release, including a few changes to examples and tests to get rid of serde_derive.

Changed

  • From webpki to rustls-webpki. Thanks for the heads-up about webpki not being maintained, @RCasatta! (#98)
  • Updated rustls and webpki-roots to their most recent versions.
  • Maximum versions for the following dependencies to keep minreq compiling on Rust 1.48:
    • serde_json (>=1.0.0, <1.0.101)
    • log (>=0.4.0, <0.4.19)
    • chrono (dev-dependency, >=0.4.0, <0.4.24)

Fixed

  • Errors when using an IP address as the host with HTTPS (tested with https://8.8.8.8). (#34)

2.8.1

20 May 16:33
Compare
Choose a tag to compare

Turns out, proxies created including the http:// part haven't been working since the proxy feature was implemented. Also did a bit of a cleanup pass on the whole proxy module.

Fixed

  • Proxy strings with the protocol included not working. Thanks for the report, @tkkcc! (#95)

2.8.0

20 May 16:29
Compare
Choose a tag to compare

Added

  • Default proxy from environment variables when the proxy feature is enabled, based on what curl does. Thanks for the PR, @krypt0nn! (#94)

2.7.0

19 Mar 00:15
Compare
Choose a tag to compare

Long time no release! This is a minor release thanks to the additions, explicitly the new Read impl for ResponseLazy, as well as --all-features now actually working. That said, I would not recommend enabling all features when using the library, you'll get a lot of unnecessary dependencies with it, thanks to the overlapping https features.

Changed

Added

  • A Read impl for ResponseLazy. Thanks for the PR, @Luro02! (#81)
  • Building with --all-features, with the send_https function defaulting to the rustls-based implementation. Thanks for the PR, @tcharding! (#89)
  • An explicit minimum supported rust version policy. The MSRV for versions 2.x is 1.48. Thanks for the suggestion and PR, @tcharding! (#90)
  • Performance improvements, test fixes, CI updates.