Releases: beltram/asserhttp
Releases · beltram/asserhttp
0.6.1
0.6.0
0.5.3
0.5.2
0.5.1
Fixes
.expect_header(key, value)
was failing for&'a str
andString
after0.5.0
Features
- moved futures-lite dependency only to the features requiring it
- MSRV
1.60.0
because of new syntax for cargo features
0.5.0
Features
- axum support 🚀
- API refactor
->.expect_status_eq(200)
.expect_status(200)
.expect_header("content-type", |h: &str| assert!(h.contains("application/")))
now accepts a closure to do some assertions on the value (.expect_headers
also)
.expect_header(headers::CONTENT_TYPE, ...)
now accepts re-exported constants for most http header keys (.expect_headers
also)- (internal) a lot of code factorized in macros shrinking the codebase from ~12k LOC down to ~1k !