OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <title>Headers idl interface</title> |
| 6 <meta name="help" href="https://fetch.spec.whatwg.org/#response"> |
| 7 <meta name="author" title="Canon Research France" href="https://www.crf.cano
n.fr"> |
| 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="/resources/WebIDLParser.js"></script> |
| 11 <script src="/resources/idlharness.js"></script> |
| 12 </head> |
| 13 <body> |
| 14 <script id="headers-idl" type="text/plain"> |
| 15 typedef (sequence<sequence<ByteString>> or record<ByteString>) HeadersInit
; |
| 16 |
| 17 [Constructor(optional HeadersInit init), |
| 18 Exposed=(Window,Worker)] |
| 19 interface Headers { |
| 20 void append(ByteString name, ByteString value); |
| 21 void delete(ByteString name); |
| 22 ByteString? get(ByteString name); |
| 23 boolean has(ByteString name); |
| 24 void set(ByteString name, ByteString value); |
| 25 iterable<ByteString, ByteString>; |
| 26 }; |
| 27 </script> |
| 28 <script> |
| 29 var idlsArray = new IdlArray(); |
| 30 var idl = document.getElementById("headers-idl").textContent |
| 31 idlsArray.add_idls(idl); |
| 32 idlsArray.add_objects({ Headers: ['new Headers()'] }); |
| 33 idlsArray.test(); |
| 34 </script> |
| 35 </body> |
| 36 </html> |
OLD | NEW |