Skip to main content

Crate sms_web_generic

Crate sms_web_generic 

Source
Expand description

§SMS Web Generic

Framework-agnostic webhook processing for smskit.

This crate provides WebhookProcessor, which takes an InboundRegistry of providers and handles the full verify → parse → respond pipeline without coupling to any HTTP framework.

Framework adapters (sms-web-axum, sms-web-warp, etc.) convert their native request/response types to/from the generic types defined here using HeaderConverter and ResponseConverter.

Macros§

implement_webhook_handler
Convenience macro for implementing webhook handlers in different frameworks.

Structs§

WebhookProcessor
Framework-agnostic webhook processor.

Traits§

HeaderConverter
Trait for converting framework-specific request headers into the generic Headers type.
ResponseConverter
Trait for converting a generic WebhookResponse into the framework’s native response type.