Skip to content

Releases: jayjamesjay/http_req

v0.13.0

14 Oct 18:30
04f559d
Compare
Choose a tag to compare

What's new

  • Default headers now include User-Agent
  • Update RedirectPolicy to allow creating Custom policies, which utilize uri
  • Support for Authentication (Basic and Bearer)
  • New dependencies
    • base64 ^0.22.1
    • zeroize ^1.8.1

Breaking changes

  • Content-Length header is automatically added, when body is set for the request as per #41 by @cjqpker, also mentioned in #39

v0.12.0

17 Aug 13:41
c5c2985
Compare
Choose a tag to compare

What's new

  • Support for redirects
    • RedirectPolicy allows to define how to handle redirects
    • Default redirect limit is set to 5 to prevent infinite redirect loops
  • Basic support for relative uris
  • Improve timeout error handling

Breaking changes

  • RequestBuilder is renamed to RequestMessage
  • Stream uses connect method instead of new to establish a connection

v0.11.1

28 Jul 08:03
Compare
Choose a tag to compare
  • update dependencies (patch)

v0.11.0

27 Jun 08:35
0aaf2e2
Compare
Choose a tag to compare

What's new

  • Improve memory management and overall stability
    • Fix issue causing all data to be loaded into memory instead of dedicated writer
    • Fix issue that could lead to exceeding timeout when server was sending data at very low speed as per #46 by @Shnatsel
    • Ensure that response body is only read when the content-length is greater than 0 or is unknown as per #65 by @ghu
  • Stream allows to more easily manage TCP connection and perform common operations on the underlying TCP stream
  • Update dependencies
    • rustls ^0.23
    • rustls-pemfile ^2.1
    • webpki-roots ^0.26
  • New dependencies (for rustls)
    • rustls-pki-types ^ 1.7

Breaking changes

  • RequestBuilder can no longer send requests by itself. It is now only used to prepare request messages.
  • Default Request timeout is set to 1 hour

v0.10.3

20 Jun 05:57
Compare
Choose a tag to compare
  • update dependencies

v0.10.2

01 Dec 19:57
Compare
Choose a tag to compare
  • update dependencies

v0.10.1

29 Oct 16:58
Compare
Choose a tag to compare
  • update dependencies

v0.10.0

02 Oct 17:46
cfacb9f
Compare
Choose a tag to compare
  • update dependencies by @DamienVoreiter in #60
    • rustls ^0.21
    • unicase ^2.7
    • webpki ^0.22 (fixes security issue briansmith/webpki#69)
    • webpki-roots ^0.25
  • add new dependencies
    • rustls-pemfile ^1.0
  • update examples
  • update Uri parser

v0.9.3

17 Sep 19:29
Compare
Choose a tag to compare
  • update dependencies

v0.9.2

07 Jul 18:46
Compare
Choose a tag to compare
  • update dependencies