Skip to content

Releases: beltram/asserhttp

0.6.1

21 Apr 15:18
Compare
Choose a tag to compare

Features

  • support tonic 0.9

0.6.0

17 Feb 12:15
Compare
Choose a tag to compare

Features

  • gRPC support through tonic client
  • remove deprecated expect_status_eq method

0.5.3

31 Jan 20:02
Compare
Choose a tag to compare

Features

  • use assert-json-diff crate for prettier json body error messages

0.5.2

20 Dec 08:39
Compare
Choose a tag to compare

Features

  • allow customizing (define your own methods) the Asserhttp trait as explained here

0.5.1

09 Jun 19:50
Compare
Choose a tag to compare

Fixes

  • .expect_header(key, value) was failing for &'a str and String after 0.5.0

Features

0.5.0

06 Jun 18:09
Compare
Choose a tag to compare

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 !

0.4.3

25 Apr 13:47
Compare
Choose a tag to compare

Features

  • ureq support !
  • (internal) use macros to factorise a lot (10k+ loc) of code

0.4.2

11 Apr 14:26
Compare
Choose a tag to compare

Features

  • use futures-lite instead of async-std

0.4.1

08 Apr 13:21
Compare
Choose a tag to compare

Features

  • remove a lot of default features from crates. Increased compilation time (especially compression crates required by awc)

0.4.0

04 Mar 17:04
Compare
Choose a tag to compare

Features

  • actix 4 support !
  • relaxed methods bounds for status & headers assertions