1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-24 09:47:49 +02:00

cleanup doc strings and clippy warnings

This commit is contained in:
Nikolay Kim
2019-03-16 21:35:02 -07:00
parent e396c90c9e
commit 4a4826b23a
7 changed files with 43 additions and 26 deletions

View File

@@ -148,7 +148,7 @@ where
}
/// Register a request modifier. It can modify any request parameters
/// including payload stream.
/// including payload stream type.
pub fn chain<C, F, P1>(
self,
chain: C,
@@ -211,6 +211,14 @@ where
}
/// Register http service.
///
/// Http service is any type that implements `HttpServiceFactory` trait.
///
/// Actix web provides several services implementations:
///
/// * *Resource* is an entry in resource table which corresponds to requested URL.
/// * *Scope* is a set of resources with common root path.
/// * "StaticFiles" is a service for static files support
pub fn service<F>(self, service: F) -> AppRouter<T, P, Body, AppEntry<P>>
where
F: HttpServiceFactory<P> + 'static,
@@ -301,7 +309,7 @@ where
///
/// Actix web provides several services implementations:
///
/// * *Resource* is an entry in route table which corresponds to requested URL.
/// * *Resource* is an entry in resource table which corresponds to requested URL.
/// * *Scope* is a set of resources with common root path.
/// * "StaticFiles" is a service for static files support
pub fn service<F>(mut self, factory: F) -> Self
@@ -354,9 +362,6 @@ where
}
/// Default resource to be used if no matching route could be found.
///
/// Default resource works with resources only and does not work with
/// custom services.
pub fn default_resource<F, U>(mut self, f: F) -> Self
where
F: FnOnce(Resource<P>) -> Resource<P, U>,