mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	LibWeb: Implement most of the 'Fetching' AOs
This implements the following operations from section 4 of the Fetch spec (https://fetch.spec.whatwg.org/#fetching): - Fetch - Main fetch - Fetch response handover - Scheme fetch - HTTP fetch - HTTP-redirect fetch - HTTP-network-or-cache fetch (without caching) It does *not* implement: - HTTP-network fetch - CORS-preflight fetch Instead, we let ResourceLoader handle the actual networking for now, which isn't ideal, but certainly enough to get enough functionality up and running for most websites to not complain.
This commit is contained in:
		
							parent
							
								
									4db85493e8
								
							
						
					
					
						commit
						c8d121fa32
					
				
					 9 changed files with 1833 additions and 0 deletions
				
			
		
							
								
								
									
										22
									
								
								Userland/Libraries/LibWeb/Fetch/Fetching/RefCountedFlag.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Userland/Libraries/LibWeb/Fetch/Fetching/RefCountedFlag.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| /*
 | ||||
|  * Copyright (c) 2022, Linus Groh <linusg@serenityos.org> | ||||
|  * | ||||
|  * SPDX-License-Identifier: BSD-2-Clause | ||||
|  */ | ||||
| 
 | ||||
| #include <AK/NonnullRefPtr.h> | ||||
| #include <LibWeb/Fetch/Fetching/RefCountedFlag.h> | ||||
| 
 | ||||
| namespace Web::Fetch::Fetching { | ||||
| 
 | ||||
| NonnullRefPtr<RefCountedFlag> RefCountedFlag::create(bool value) | ||||
| { | ||||
|     return adopt_ref(*new RefCountedFlag(value)); | ||||
| } | ||||
| 
 | ||||
| RefCountedFlag::RefCountedFlag(bool value) | ||||
|     : m_value(value) | ||||
| { | ||||
| } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh