| 
									
										
										
										
											2022-11-10 20:11:25 +01:00
										 |  |  | #import <DOM/Document.idl> | 
					
						
							| 
									
										
										
										
											2022-03-30 23:35:42 +03:00
										 |  |  | #import <DOM/EventHandler.idl> | 
					
						
							| 
									
										
										
										
											2022-09-21 23:14:40 +01:00
										 |  |  | #import <Fetch/BodyInit.idl> | 
					
						
							|  |  |  | #import <XHR/XMLHttpRequestEventTarget.idl> | 
					
						
							| 
									
										
										
										
											2023-02-28 18:27:52 +00:00
										 |  |  | #import <XHR/XMLHttpRequestUpload.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-15 14:35:29 +03:30
										 |  |  | enum XMLHttpRequestResponseType { | 
					
						
							|  |  |  |   "", | 
					
						
							|  |  |  |   "arraybuffer", | 
					
						
							|  |  |  |   "blob", | 
					
						
							|  |  |  |   "document", | 
					
						
							|  |  |  |   "json", | 
					
						
							|  |  |  |   "text" | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-07 16:45:09 -06:00
										 |  |  | // https://xhr.spec.whatwg.org/#xmlhttprequest | 
					
						
							| 
									
										
										
										
											2023-09-03 02:00:01 +12:00
										 |  |  | [Exposed=(Window,DedicatedWorker,SharedWorker)] | 
					
						
							| 
									
										
										
										
											2021-01-23 17:52:16 +00:00
										 |  |  | interface XMLHttpRequest : XMLHttpRequestEventTarget { | 
					
						
							| 
									
										
										
										
											2021-01-23 13:23:17 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-17 22:53:20 +01:00
										 |  |  |     constructor(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-23 13:23:17 +01:00
										 |  |  |     const unsigned short UNSENT = 0; | 
					
						
							|  |  |  |     const unsigned short OPENED = 1; | 
					
						
							|  |  |  |     const unsigned short HEADERS_RECEIVED = 2; | 
					
						
							|  |  |  |     const unsigned short LOADING = 3; | 
					
						
							|  |  |  |     const unsigned short DONE = 4; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     readonly attribute unsigned short readyState; | 
					
						
							| 
									
										
										
										
											2021-04-03 15:17:29 +02:00
										 |  |  |     readonly attribute unsigned short status; | 
					
						
							| 
									
										
										
										
											2023-02-28 18:27:52 +00:00
										 |  |  |     readonly attribute ByteString statusText; | 
					
						
							| 
									
										
										
										
											2021-01-23 13:23:17 +01:00
										 |  |  |     readonly attribute DOMString responseText; | 
					
						
							| 
									
										
										
										
											2022-02-15 14:35:29 +03:30
										 |  |  |     readonly attribute any response; | 
					
						
							|  |  |  |     attribute XMLHttpRequestResponseType responseType; | 
					
						
							| 
									
										
										
										
											2022-04-23 21:42:15 +02:00
										 |  |  |     attribute unsigned long timeout; | 
					
						
							| 
									
										
										
										
											2022-11-13 14:47:21 +00:00
										 |  |  |     attribute boolean withCredentials; | 
					
						
							| 
									
										
										
										
											2023-02-28 18:27:52 +00:00
										 |  |  |     [SameObject] readonly attribute XMLHttpRequestUpload upload; | 
					
						
							| 
									
										
										
										
											2021-01-23 13:23:17 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     undefined open(DOMString method, DOMString url); | 
					
						
							| 
									
										
										
										
											2023-02-28 18:27:52 +00:00
										 |  |  |     undefined open(ByteString method, USVString url, boolean async, optional USVString? username = null, optional USVString? password = null); | 
					
						
							| 
									
										
										
										
											2021-01-23 13:23:17 +01:00
										 |  |  |     undefined setRequestHeader(DOMString name, DOMString value); | 
					
						
							| 
									
										
										
										
											2022-11-10 20:11:25 +01:00
										 |  |  |     undefined send(optional (Document or XMLHttpRequestBodyInit)? body = null); | 
					
						
							| 
									
										
										
										
											2022-11-05 03:35:02 +00:00
										 |  |  |     undefined abort(); | 
					
						
							| 
									
										
										
										
											2021-01-23 13:23:17 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-03 15:51:15 +02:00
										 |  |  |     ByteString? getResponseHeader(ByteString name); | 
					
						
							| 
									
										
										
										
											2021-09-19 22:32:33 +02:00
										 |  |  |     ByteString getAllResponseHeaders(); | 
					
						
							| 
									
										
										
										
											2022-02-11 21:04:42 +00:00
										 |  |  |     undefined overrideMimeType(DOMString mime); | 
					
						
							| 
									
										
										
										
											2021-04-03 15:51:15 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-19 01:40:13 +02:00
										 |  |  |     attribute EventHandler onreadystatechange; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-23 13:23:17 +01:00
										 |  |  | }; |