Expand description
§httpsig-hyper
httpsig-hyper is a crate that provides a convenient API for Hyper users to handle HTTP signatures.
This crate extends hyper’s http request and response messages with the ability to generate and verify HTTP signatures.
Additionally it also provides a way to set and verify content-digest header.
§Async-first design
The primary API is fully async, allowing concurrent processing of multiple signatures via
MessageSignatureReq and MessageSignatureRes.
§Blocking API
When the blocking feature is enabled (on by default), synchronous wrappers are provided via
MessageSignatureReqSync and MessageSignatureResSync. These use futures::executor::block_on
internally and are intended exclusively for non-async contexts.
§Panics
Calling any *_sync method from within an async runtime (e.g. inside a tokio::spawn task)
will panic. If you are already in an async context, use the async methods directly.
Modules§
Enums§
- Content
Digest Type - content-digest header type
- Hyper
Digest Error - Error type for http signature for hyper
- Hyper
SigError - Error type for http signature for hyper
Traits§
- Content
Digest - Message
Signature - A trait about the http message signature common to both request and response
- Message
Signature Req - A trait about http message signature for request
- Message
Signature ReqSync - Synchronous counterpart of
MessageSignatureReq. - Message
Signature Res - A trait about http message signature for response
- Message
Signature ResSync - Synchronous counterpart of
MessageSignatureRes. - Request
Content Digest - A trait to set the http content digest in request in base64
- Response
Content Digest - A trait to set the http content digest in response in base64
Type Aliases§
- Hyper
Digest Result - Result type for http signature
- Hyper
SigResult - Result type for http signature