mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:32:45 +00:00 
			
		
		
		
	 ee68eba0ac
			
		
	
	
		ee68eba0ac
		
	
	
	
	
		
			
			This is a normative change in the Fetch spec.
See: e4d3480
This also implements the changes to the 'sort and combine' algorithm,
which now treats "set-cookie" headers differently, and is exposed to JS
via the Headers' iterator.
Passes all 21 WPT tests :^)
http://wpt.live/fetch/api/headers/header-setcookie.any.html
		
	
			
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			484 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			484 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) HeadersInit;
 | |
| 
 | |
| [Exposed=(Window,Worker)]
 | |
| interface Headers {
 | |
|     constructor(optional HeadersInit init);
 | |
| 
 | |
|     undefined append(ByteString name, ByteString value);
 | |
|     undefined delete(ByteString name);
 | |
|     ByteString? get(ByteString name);
 | |
|     sequence<ByteString> getSetCookie();
 | |
|     boolean has(ByteString name);
 | |
|     undefined set(ByteString name, ByteString value);
 | |
|     iterable<ByteString, ByteString>;
 | |
| };
 |