docs(server): mention http2 support
mention http2 support in server module documentation. Closes #1578
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							a2a6e36cca
						
					
				
				
					commit
					396e6022e0
				
			| @@ -14,6 +14,8 @@ | |||||||
| //! It wraps a listener with a [`NewService`](::service), and then should | //! It wraps a listener with a [`NewService`](::service), and then should | ||||||
| //! be executed to start serving requests. | //! be executed to start serving requests. | ||||||
| //! | //! | ||||||
|  | //! [`Server`](Server) accepts connections in both HTTP1 and HTTP2 by default. | ||||||
|  | //! | ||||||
| //! ## Example | //! ## Example | ||||||
| //! | //! | ||||||
| //! ```no_run | //! ```no_run | ||||||
| @@ -65,7 +67,7 @@ use service::{NewService, Service}; | |||||||
| use self::conn::{Http as Http_, SpawnAll}; | use self::conn::{Http as Http_, SpawnAll}; | ||||||
| #[cfg(feature = "runtime")] use self::tcp::{AddrIncoming}; | #[cfg(feature = "runtime")] use self::tcp::{AddrIncoming}; | ||||||
|  |  | ||||||
| /// A listening HTTP server. | /// A listening HTTP server that accepts connections in both HTTP1 and HTTP2 by default. | ||||||
| /// | /// | ||||||
| /// `Server` is a `Future` mapping a bound listener with a set of service | /// `Server` is a `Future` mapping a bound listener with a set of service | ||||||
| /// handlers. It is built using the [`Builder`](Builder), and the future | /// handlers. It is built using the [`Builder`](Builder), and the future | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user