Skip to content

Repository files navigation

http-libs

CI License .NET GitHub Stars

A collection of .NET libraries for HTTP caching, structured field values, message signatures, and trusted-proxy forwarding.

Note

Projects are new and being dog-fooded. If you try any of them out feedback would be appreciated!

Packages

Package Description NuGet Downloads
DamianH.HttpHybridCacheHandler RFC 9111 client-side HTTP caching handler for HttpClient NuGet Downloads
DamianH.FileDistributedCache File-based IDistributedCache / IBufferDistributedCache for zero-infrastructure persistent caching NuGet Downloads
DamianH.Http.StructuredFieldValues RFC 8941/9651 parser, serializer, and POCO mapper for HTTP Structured Field Values NuGet Downloads
DamianH.Http.HttpSignatures RFC 9421 HTTP Message Signatures for signing and verifying HTTP messages NuGet Downloads
DamianH.Http.ForwardedHeaders RFC 7239 Forwarded parser and trusted-proxy middleware for ASP.NET Core NuGet Downloads

Repository Structure

The HTTP cache also has separately versioned content-store packages for Azure Blob Storage, Amazon S3, Google Cloud Storage, and local files, sharing a provider-independent ContentStore package. Cloud adapters use official SDKs.

hybrid-cache-handler/         # RFC 9111 HTTP caching DelegatingHandler
file-distributed-cache/       # File-based IDistributedCache implementation
structured-field-values/      # RFC 8941/9651 structured field values
signatures/                   # RFC 9421 HTTP message signatures
forwarded-headers/            # RFC 7239 Forwarded parser and ASP.NET Core middleware

Building

Each lib has its own build script and solution filter:

dotnet run signatures/build.cs -- build   # or: forwarded-headers, structured-field-values, hybrid-cache-handler, file-distributed-cache
dotnet build http-lib.slnx                # everything

Running Tests

dotnet run signatures/build.cs -- test    # per lib
dotnet test http-lib.slnx                 # everything

License

MIT — see LICENSE.

Contributing

Bug reports should be accompanied by a reproducible test case in a pull request.

About

Caching HttpHandler based on RFC 9111 that uses HybridCache, Structured Field Values, Http Signing

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages