Skip to content

Commit 2d21b2c

Browse files
committed
chore: deps
2 parents 190d474 + 3b77805 commit 2d21b2c

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

httpsig-hyper/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//! # httpsig-hyper
2+
//!
3+
//! `httpsig-hyper` is a crate that provides a convenient API for `Hyper` users to handle HTTP signatures.
4+
//! This crate extends hyper's https request and response messages with the ability to generate and verify HTTP signatures.
5+
//! Additionally it also provides a way to set and verify content-digest header.
6+
17
mod error;
28
mod hyper_content_digest;
39
mod hyper_http;

httpsig/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//! # httpsig
2+
//!
3+
//! `httpsig` is a library for raw HTTP Signature.
4+
//! It provides a simple API for signing and verifying HTTP messages, and does not depends on any HTTP framework.
5+
//! It simply handles header keys and values in `String` or `&str` as HTTP message components, which means it can be used in any HTTP framework but requires complicated handling of HTTP headers.
6+
//! We thus recommend to use [`httpsig-hyper`](https://crates.io/crates/httpsig-hyper) for `Hyper`` users, which provides a more convenient API.
7+
18
mod crypto;
29
mod error;
310
mod message_component;

httpsig/src/signature_base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ impl HttpSignatureHeaders {
119119
}
120120

121121
#[derive(Debug, Clone)]
122+
/// Wrapper struct of raw signature bytes
122123
pub struct HttpSignature(Vec<u8>);
123124
impl std::fmt::Display for HttpSignature {
124125
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {

0 commit comments

Comments
 (0)