Skip to content

Releases: alexliesenfeld/httpmock

v0.6.1

11 Aug 12:00
Compare
Choose a tag to compare

This is a maintenance release that updates all dependencies to the most recent version.

v0.6.0

11 Aug 09:57
6ae58dc
Compare
Choose a tag to compare

General

  • Old Mock structure based API was deprecated starting from version 0.5.0 and was removed with this version. Please switch to the new API based on the When / Then structures.
  • The two methods MockRef::times_called and MockRef::times_called_async were deprecated since version 0.5.0 and have now been removed.
  • A prelude module was added to shorten imports that are usually required when using httpmock in tests.
  • The struct MockRef has been renamed to Mock.
  • Trait MockRefExt has been renamed to MockExt.
  • Added support for x-www-form-urlencoded request bodies.

Standalone Mock Server

  • Standalone server now has a request history limit that can be adjusted.
  • All standalone servers parameters now have an environment variable fallback.
  • Standalone servers exposed and disable_access_log parameters were changed, so that they now require a value in addition to the flag itself (this is due to a limitation of structopt/clap): Before: httpmock --expose, Now: httpmock --expose true.

v0.5.8

18 Apr 22:06
1ffff7d
Compare
Choose a tag to compare

A bug has been fixed that prevented to use the mock server for requests containing a multipart/form-data
request body with binary data.

v0.5.7

29 Mar 21:55
Compare
Choose a tag to compare
  • Added static mock support based on YAML files for standalone mode.
  • Dockerfile Rust version has been fixed.
  • Bumped minimum Rust version to 1.46 due to transitive dependency.
  • Documentation on query parameters has been enhanced.

v0.5.6

12 Mar 00:50
7c9b330
Compare
Choose a tag to compare
  • A bug has been fixed that caused false positive warnings in the log output.
  • Updated all dependencies to the most recent versions.
  • Assertion error messages (MockRef::assert and MockRef::assert_hits) now contain more details.

v0.5.5

28 Jan 20:35
Compare
Choose a tag to compare

A bug has been fixed that prevented to use a request body in DELETE requests.

v0.5.4

15 Jan 21:47
4f2406f
Compare
Choose a tag to compare

A new extension trait MockRefExt was added that extends the MockRef structure with additional but usually
not required functionality.

v0.5.3

07 Jan 22:45
39cbb47
Compare
Choose a tag to compare
  • This is a maintenance release that updates all dependencies to the most recent version.
  • This release bumps the minimal Rust version from 1.43+ to 1.45+.

v0.5.2

25 Oct 01:17
Compare
Choose a tag to compare
  • Updated dependencies to newest version.
  • Removed dependency version fixation from v0.5.1.
  • Mock::return_body_from_file and Then::body_from_file now accept absolute and relative file paths.

v0.5.1

24 Oct 23:31
Compare
Choose a tag to compare
  • Updated dependency version of futures-util to fix compile errors
  • Fixed all dependency version numbers to avoid future problems with new dependency version releases.