Documentation
¶
Overview ¶
Package httpsig implements HTTP signatures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RFC9421DigestSHA256 ¶ added in v0.19.0
RFC9421DigestSHA256 adds the Content-Digest header using SHA-256.
func RFC9421DigestSHA512 ¶ added in v0.19.0
RFC9421DigestSHA256 adds the Content-Digest header using SHA-512.
Types ¶
type Signature ¶
func Extract ¶
func Extract(r *http.Request, body []byte, domain string, now time.Time, maxAge time.Duration) (*Signature, error)
Extract extracts signature attributes, validates them and returns a Signature. Caller should obtain the key and pass it to Signature.Verify. It supports RFC9421 and falls back to draft-cavage-http-signatures.
Click to show internal directories.
Click to hide internal directories.