| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // https://fetch.spec.whatwg.org/#responseinit | 5 // https://fetch.spec.whatwg.org/#responseinit |
| 6 | 6 |
| 7 // The actual typedef in the spec is | |
| 8 // (sequence<sequence<ByteString>> or record<ByteString,ByteString>) | |
| 9 // which also implicitly includes Headers since it is iterable. | |
| 10 // Blink's WebIDL code does not support record<K,V> yet, so we have to make do | |
| 11 // with the (Dictionary or Headers) part instead. | |
| 12 // See http://crbug.com/685754. | |
| 13 typedef (sequence<sequence<ByteString>> or Dictionary or Headers) HeadersInit; | |
| 14 | |
| 15 dictionary ResponseInit { | 7 dictionary ResponseInit { |
| 16 unsigned short status = 200; | 8 unsigned short status = 200; |
| 17 ByteString statusText = "OK"; | 9 ByteString statusText = "OK"; |
| 18 HeadersInit headers; | 10 HeadersInit headers; |
| 19 }; | 11 }; |
| OLD | NEW |