feat(service): rename Service to HttpService, re-export tower::Service`
				
					
				
			The only important trait for a user is the `tower::Service` trait, which is now available also at `hyper::service::Service`. The other "trait aliases" are no longer publicly exported, as people thought they had to implement them. Also removes dependency on `tower-make`, which is trivial but otherwise shouldn't affect anyone. Closes #1959
This commit is contained in:
		| @@ -1,17 +1,13 @@ | ||||
| //! Utilities used to interact with the Tower ecosystem. | ||||
| //! | ||||
| //! This module provides exports of `Service`, `MakeService` and `Connect` which | ||||
| //! all provide hook-ins into the Tower ecosystem. | ||||
| //! This module provides `Connect` which hook-ins into the Tower ecosystem. | ||||
|  | ||||
| use super::conn::{SendRequest, Builder}; | ||||
| use std::marker::PhantomData; | ||||
| use crate::{common::{Poll, task, Pin}, body::Payload}; | ||||
| use std::future::Future; | ||||
| use std::error::Error as StdError; | ||||
| use tower_make::MakeConnection; | ||||
|  | ||||
| pub use tower_service::Service; | ||||
| pub use tower_make::MakeService; | ||||
| use crate::{common::{Poll, task, Pin}, body::Payload, service::{MakeConnection, Service}}; | ||||
| use super::conn::{SendRequest, Builder}; | ||||
|  | ||||
| /// Creates a connection via `SendRequest`. | ||||
| /// | ||||
|   | ||||
		Reference in New Issue
	
	Block a user