mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:22:43 +00:00 
			
		
		
		
	 d036862f2b
			
		
	
	
		d036862f2b
		
	
	
	
	
		
			
			This makes XHR now rely on Fetch, which allows it to correct send Origin and Referer headers, CORS-preflight and filtering and many other goodies. The main thing that's missing is Streams, which means we can't properly produce progress events or switch to the Loading ready state. This also doesn't implement the Document responseType just yet.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			377 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			377 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/ByteBuffer.h>
 | |
| 
 | |
| namespace Web::Infra {
 | |
| 
 | |
| void byte_lowercase(ByteBuffer&);
 | |
| void byte_uppercase(ByteBuffer&);
 | |
| bool is_prefix_of(ReadonlyBytes potential_prefix, ReadonlyBytes input);
 | |
| bool is_byte_less_than(ReadonlyBytes a, ReadonlyBytes b);
 | |
| 
 | |
| }
 |