pub fn notification_token(headers: &HeaderMap) -> Option<&str>Available on crate feature
webhook only.Expand description
Reads the push notification token from a webhook request’s headers, under either spelling.
Returns None when neither header is present, when a value is not
visible ASCII, or when the request carries more than one distinct value
across the two spellings: a sender writes one token, so two different
ones mean something in between added one, and picking either would let
it choose which the receiver checks.
WebhookReceiver::receive calls this
itself; it is public for a receiver that keeps its own registry.