Support very large headers
This completely refactors how headers are hpack-encoded. Instead of trying to be clever, constructing frames on the go while hpack-encoding, we just make a blob of all the hpack-encoded headers first, and then we split that blob in as many frames as necessary.
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							e9a13700cb
						
					
				
				
					commit
					61b4f8fc34
				
			| @@ -121,6 +121,7 @@ pub fn build_large_headers() -> Vec<(&'static str, String)> { | ||||
|         ("eight", build_large_string('8', 4 * 1024)), | ||||
|         ("nine", "nine".to_string()), | ||||
|         ("ten", build_large_string('0', 4 * 1024)), | ||||
|         ("eleven", build_large_string('1', 32 * 1024)), | ||||
|     ] | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user