Crate tower_github_webhook

Source
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§

ValidateGitHubWebhook
Middleware that authorizes all requests using the X-Hub-Signature-256 header.
ValidateGitHubWebhookLayer
Layer that applies the ValidateGitHubWebhook middleware which authorizes all requests using the X-Hub-Signature-256 header.