Expand description
§Overview
tower-github-webhook
is a crate for verifying signed webhooks received from GitHub.
The crate exports two structs: ValidateGitHubWebhookLayer
and ValidateGitHubWebhook
. These
structs implement tower_layer::Layer
and tower_service::Service
, respectively, and so can
be used as middleware for any servers that build on top of the Tower ecosystem.
Structs§
- Validate
GitHub Webhook - Middleware that authorizes all requests using the X-Hub-Signature-256 header.
- Validate
GitHub Webhook Layer - Layer that applies the ValidateGitHubWebhook middleware which authorizes all requests using
the
X-Hub-Signature-256
header.