Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A caching middleware that follows HTTP caching rules

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

06chaynes/http-cache

CICrates.ioDocs.rsCodecovCrates.io

the http-cache logo

A caching middleware that follows HTTP caching rules,thanks tohttp-cache-semantics.By default, it usescacache as the backend cache manager.

How do I use this?

Likely you won't! At least not directly. Unless you are looking to implement a custom backend cache manageror client middleware you'll probably want to pull in one of the existing client implementations instead.See theProvided Client Implementations section below.

Minimum Supported Rust Version (MSRV)

1.82.0

Install

Withcargo add installed :

cargo add http-cache

Features

The following features are available. By defaultmanager-cacache andcacache-async-std are enabled.

  • manager-cacache (default): enablecacache, a high-performance disk cache, backend manager.
  • cacache-async-std (default): enableasync-std runtime support for cacache.
  • cacache-tokio (disabled): enabletokio runtime support for cacache.
  • manager-moka (disabled): enablemoka, a high-performance in-memory cache, backend manager.
  • with-http-types (disabled): enablehttp-types type conversion support

Documentation

Provided Client Implementations

  • Surf: SeeREADME for more details
  • Reqwest: SeeREADME for more details

Additional Manager Implementations

  • quick-cache: SeeREADME for more details

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in the work by you, as defined in the Apache-2.0 license, shall bedual licensed as above, without any additional terms or conditions.

About

A caching middleware that follows HTTP caching rules

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors12


[8]ページ先頭

©2009-2025 Movatter.jp