Enumerationmochidev.swift-webpush 0.4.2WebPush
KeyProvider
A Private Key and Shared Secret provider.
enum KeyProvider
A Private Key and Shared Secret provider.
enum KeyProvider
import WebPush
enum Executor
An internal type representing the executor for a push message.
actor WebPushManager
A manager for sending push messages to subscribers.
case generateNew
Generate a new Private Key and Shared Secret when asked.
case shared((P256.KeyAgreement.PublicKey) throws -> (P256.KeyAgreement.PrivateKey, SharedSecret))
Used a shared generator to provide a Private Key and Shared Secret when asked.
static func httpClient(_ httpClient: any HTTPClientProtocol) -> WebPushManager.Executor
Use an HTTP client to send an encrypted payload to a subscriber.
protocol Sendable