text

Body (DOM)

仕様書

PushMessageData

[2] PushMessageData インターフェイスでは、 プッシュメッセージのデータにアクセスできます。 メソッドがすべて Promise ではなく値自体を返すことに注意が必要です。

[22] 仕様書の規定はどうにも null の場合の処理が怪しいです。

[3] PushMessageData は、 バイト群 (bytes) を持ちます。 値はバイト列で、作成時に設定されます。 プッシュメッセージがデータを持たない場合、 値は null です。 >>1

[4] PushMessageData インターフェイスarrayBuffer メソッドは、 次のようにしなければなりません>>1

  1. [5] 配列を、 文脈オブジェクトバイト群ArrayBuffer を作成した結果に設定します。 例外再び投げます。
  2. [6] 配列を返します。

[7] PushMessageData インターフェイスblob メソッドは、 次のようにしなければなりません>>1

  1. [8] blobを、 文脈オブジェクトバイト群Blob を作成した結果に設定します。
  2. [9] blob を返します。

[10] PushMessageData インターフェイスtext メソッドは、 次のようにしなければなりません>>1

  1. [15] テキストを、 文脈オブジェクトバイト群UTF-8復号を適用した結果に設定します。
  2. [16] テキストを返します。

[14] PushMessageData インターフェイスjson メソッドは、 次のようにしなければなりません>>1

  1. [11] テキストを、 文脈オブジェクトバイト群UTF-8復号を適用した結果に設定します。
  2. [12] json を、 テキストJSON.parse を適用した結果に設定します。 例外再び投げます。
  3. [13] json を返します。

歴史

[910] Put body members directly on Response/Request · a898f9a · whatwg/fetch ( ( 版)) https://github.com/whatwg/fetch/commit/a898f9a2941350aa625aa79b24673628ac2b2a8e

[911] TLS & align with Fetch · 4cd1644 · whatwg/xhr ( ( 版)) https://github.com/whatwg/xhr/commit/4cd16449653d010173ecdd6455589293b8552732

[49] Use interface mixins instead of [NoInterfaceObject] (romandev著, ) https://github.com/whatwg/fetch/commit/7e617beaedf731e2904b14919b5c0270a73b75dc

[51] Update WebIDL definition(s) to use new mixin syntax · Issue #624 · whatwg/fetch () https://github.com/whatwg/fetch/issues/624

[55] Use `interface mixins` instead of `[NoInterfaceObject]` by romandev · Pull Request #645 · whatwg/fetch () https://github.com/whatwg/fetch/pull/645

[112] Define the Content-Type header parser (annevk著, ) https://github.com/whatwg/fetch/commit/0b2bc05b2550dcbefe1321ea3e8026702514a798