modules: draft/webpush — RFC 8291 (aes128gcm) + RFC 8292 (VAPID ES256) Web Push; WEBPUSH REGISTER/UNREGISTER, VAPID ISUPPORT, off-core delivery, HKDF/round-trip tested
This commit is contained in:
parent
6bb8ccd8ee
commit
6ecb6f3d84
8 changed files with 642 additions and 2 deletions
|
|
@ -953,6 +953,9 @@ impl Server {
|
|||
if let Some(tok) = crate::modules::filehost::isupport(self) {
|
||||
tokens.push(tok);
|
||||
}
|
||||
if let Some(tok) = crate::modules::webpush::isupport(self) {
|
||||
tokens.push(tok);
|
||||
}
|
||||
// at most 13 tokens per 005 line (the RFC-suggested cap) so strict clients
|
||||
// don't truncate trailing tokens
|
||||
tokens.chunks(13).map(|c| c.join(" ")).collect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue