feat(server): add http1_max_buf_size in the server::Builder (#1761)
				
					
				
			Similarly to `client::Builder::http1_max_buf_size`.
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							e52f80df5a
						
					
				
				
					commit
					3e9782c2a9
				
			| @@ -302,6 +302,14 @@ impl<I, E> Builder<I, E> { | ||||
|         self | ||||
|     } | ||||
|  | ||||
|     /// Set the maximum buffer size. | ||||
|     /// | ||||
|     /// Default is ~ 400kb. | ||||
|     pub fn http1_max_buf_size(mut self, val: usize) -> Self { | ||||
|         self.protocol.max_buf_size(val); | ||||
|         self | ||||
|     } | ||||
|  | ||||
|     /// Sets the `Executor` to deal with connection tasks. | ||||
|     /// | ||||
|     /// Default is `tokio::spawn`. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user