headers property

Map<String, String> get headers

Headers the push service requires alongside body. VAPID authorization, if used, is added on top of these.

Implementation

Map<String, String> get headers => <String, String>{
      'content-encoding': 'aes128gcm',
      'content-type': 'application/octet-stream',
      'content-length': '${body.length}',
    };