axum-extra-v0.9.2

tokio-rs/axumaxum-extra-v0.9.2Jan 13, 2024by davidpdrsn

AI Summary

Enhances error handling and extractor capabilities, specifically adding support for typed paths in rejection contexts and utility functions for typed headers.

Key Highlights

  • Implement `TypedPath` for `WithRejection<TypedPath, _>`
  • Added `is_missing` function for `TypedHeaderRejection`
  • Fixed documentation links in `JsonDeserializer`

New Features

  • `TypedPath` implementation for `WithRejection`
  • `is_missing` function for `TypedHeaderRejection`

Full Release Notes

- **added:** Implement `TypedPath` for `WithRejection<TypedPath, _>`
- **fixed:** Documentation link to `serde::Deserialize` in `JsonDeserializer` extractor ([#2498])
- **added:** Add `is_missing` function for `TypedHeaderRejection` and `TypedHeaderRejectionReason` ([#2503])

[#2498]: https://github.com/tokio-rs/axum/pull/2498
[#2503]: https://github.com/tokio-rs/axum/pull/2503