mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:02:45 +00:00 
			
		
		
		
	 2726fc9c73
			
		
	
	
		2726fc9c73
		
	
	
	
	
		
			
			The Fetch spec unfortunately will cause a name clash between the Request concept and the Request JS object - both cannot live in the Web::Fetch namespace, and WrapperGenerator generally assumes `Web::<Name>` for things living in the `<Name>/` subdirectory, so let's instead move infra code into its own namespace - it already sits in a (sub-)subdirectory anyway.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			439 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			439 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Fetch/Infrastructure/HTTP/Bodies.h>
 | |
| 
 | |
| namespace Web::Fetch::Infrastructure {
 | |
| 
 | |
| Body::Body(ReadableStreamDummy stream)
 | |
|     : m_stream(stream)
 | |
| {
 | |
| }
 | |
| 
 | |
| Body::Body(ReadableStreamDummy stream, SourceType source, Optional<u64> length)
 | |
|     : m_stream(stream)
 | |
|     , m_source(move(source))
 | |
|     , m_length(move(length))
 | |
| {
 | |
| }
 | |
| 
 | |
| }
 |