Releases: lipanski/mockito
Releases · lipanski/mockito
1.7.2
1.7.1
- Add headers method to Request struct by @gustavomedeiross in #220
- Optimize body matching by checking binary match before UTF-8 conversion by @Abimael10 in #221
- Refactor response body by @tottoto in #222
1.7.0
1.6.1
- Added
Mock::with_header_from_requestallowing you to set the header dynamically by using a closure which exposes theRequestobject
Thanks to @alex-kattathra-johnson
1.6.0
- Introduced
Mock::match_requestwhich exposes theRequestobject via a closure and can be used to build custom matchers
1.5.0
1.4.0
1.3.1
1.3.0
- Introduced
Server::new_with_opts,Server::new_with_opts_asyncand theServerOptsstruct to allow configuring the server host, port and enabling auto-asserts (see next item) - Added the
assert_on_dropserver option that allows you to automatically callassert()whenever your mocks go out of scope (defaults to false) - Expose
Server::socket_address()to return the raw serverSocketAddr - Use only required features for dependencies
- Accept
hyper::header::HeaderValueas amatch_header()value
Thanks to @andrewtoth @alexander-jackson
1.2.0
- [Breaking] The minimum supported Rust version was bumped to 1.68.0
- The server pool was limited to 20 servers for
mac_ostargets to prevent hitting the file descriptor limit
Thanks to @kornelski