Releases: alexliesenfeld/httpmock
Releases · alexliesenfeld/httpmock
v0.6.1
This is a maintenance release that updates all dependencies to the most recent version.
v0.6.0
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
andMockRef::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 toMock
. - Trait
MockRefExt
has been renamed toMockExt
. - 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
anddisable_access_log
parameters were changed, so that they now require a value in addition to the flag itself (this is due to a limitation ofstructopt
/clap
): Before:httpmock --expose
, Now:httpmock --expose true
.
v0.5.8
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
- 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
- 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
andMockRef::assert_hits
) now contain more details.
v0.5.5
A bug has been fixed that prevented to use a request body in DELETE requests.
v0.5.4
A new extension trait MockRefExt
was added that extends the MockRef
structure with additional but usually
not required functionality.
v0.5.3
- 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
- Updated dependencies to newest version.
- Removed dependency version fixation from v0.5.1.
Mock::return_body_from_file
andThen::body_from_file
now accept absolute and relative file paths.
v0.5.1
- Updated dependency version of futures-util to fix compile errors
- Fixed all dependency version numbers to avoid future problems with new dependency version releases.