feat(server): add http1_only configuration
A new configuration http1_only to Builder and Connection are added, which indicates that the upgrading to h2 does not perform when a parsing error occurs. Fixes #1512.
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							785914e77e
						
					
				
				
					commit
					14d9246de2
				
			| @@ -167,6 +167,14 @@ impl<I> Builder<I> { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /// Sets whether HTTP/1 is required. | ||||
|     /// | ||||
|     /// Default is `false`. | ||||
|     pub fn http1_only(mut self, val: bool) -> Self { | ||||
|         self.protocol.http1_only(val); | ||||
|         self | ||||
|     } | ||||
|  | ||||
|     /// Sets whether HTTP/2 is required. | ||||
|     /// | ||||
|     /// Default is `false`. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user