pywebpush
pywebpush copied to clipboard
Add headers parameter to webpush
An example of where this could be useful is the Urgency
parameter (5.3 of the RFC). To use that (as I understand the API of the package), you would have to use WebPusher
, duplicate the part of webpush
concerned with defining vapid_headers
, and then set 'Urgency'
yourself. (In fact, since TTL already exists as a separate parameter, perhaps Urgency could as well?)