View Source WebPushEx (web_push_ex v0.1.0)
Web Push notifications via aes128gcm
.
Implementation of RFC 8291, 8188, & 5689.
Summary
Functions
Decode a URL-safe Base64-encoded string with @base64_options (padding: false).
URL-safe Base64 encode a binary with @base64_options (padding: false).
Encrypt a message according to RFCs 8291, 8188, 5869.
Build and return a Request struct with details ready for sending.
Types
Functions
Decode a URL-safe Base64-encoded string with @base64_options (padding: false).
URL-safe Base64 encode a binary with @base64_options (padding: false).
@spec encrypt_payload(String.t(), WebPushEx.Subscription.t(), keyword()) :: binary()
Encrypt a message according to RFCs 8291, 8188, 5869.
see: https://datatracker.ietf.org/doc/html/rfc8291/#section-3.1
@spec request(WebPushEx.Subscription.t(), String.t(), keyword()) :: WebPushEx.Request.t()
Build and return a Request struct with details ready for sending.