web-push-0.5: Send messages using Web Push protocol.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.WebPush.Internal

Synopsis

Documentation

data ServerIdentification Source #

Server identification for a single host, used to identify the server to the remote push server

Constructors

ServerIdentification 

Fields

webPushJWT :: MonadRandom m => PrivateKey -> ServerIdentification -> m ByteString Source #

data WebPushEncryptionInput Source #

All inputs are in raw bytes with no encoding except for the plaintext for which raw bytes are the Base 64 encoded bytes

hostHeaders :: (MonadIO m, MonadRandom m) => PrivateKey -> ServerIdentification -> m [Header] Source #

Authorization header for a vapid push notification request this is shared between all push notifications sent to a single push service host

uriHost :: URI -> Maybe Text Source #

The host for URI including scheme and port

ecBytesToPublicKey :: ByteString -> Either CryptoError Point Source #