actix-web/src
Chinedu Francis Nwafili 035f8ee080
Expose common types for App<T, _>
Before this commit, many of the common monomorphizations of `App<T, B>`
where impossible to return from a function.

For example:

```
/// Create the actix-web application that can be used to start an HttpServer.
pub fn create_app(
    config: AppConfig,
) -> App<
    impl ServiceFactory<
        ServiceRequest,
        Config = (),
        Response = ServiceResponse<StreamLog<Body>>,
        Error = actix_web::error::Error,
        InitError = (),
    >,
    StreamLog<Body>,
> {
    unimplemented!()
}
```

Would fail to compile since the `ServiceFactory` was not publicly
exported from actix-web.

---

In this commit, a few types that are commonly used when constructing
an App are now exported.

This allows you to have a `fn create_app () -> App<T, B>` that can be
re-used across your test suite.
2021-07-05 14:10:59 -04:00
..
error re-add serde error impls 2021-06-25 12:28:04 +01:00
http Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
middleware Expose common types for App<T, _> 2021-07-05 14:10:59 -04:00
response Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
types Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
app.rs fix scope and resource middleware data access (#2288) 2021-06-25 13:19:42 +01:00
app_service.rs Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
config.rs simplify `ConnectionInfo::new` (#2282) 2021-06-26 00:39:06 +01:00
data.rs app data doc improvements 2021-06-24 15:10:51 +01:00
dev.rs Move dev module to separate file, update description (#2293) 2021-06-27 07:44:56 +01:00
extract.rs `Route::service` (#2262) 2021-06-23 21:30:06 +01:00
guard.rs add support of filtering guards in Files of actix-files (#2046) 2021-04-22 18:13:13 +01:00
handler.rs refined error model (#2253) 2021-06-17 17:57:58 +01:00
helpers.rs refined error model (#2253) 2021-06-17 17:57:58 +01:00
info.rs simplify `ConnectionInfo::new` (#2282) 2021-06-26 00:39:06 +01:00
lib.rs Expose common types for App<T, _> 2021-07-05 14:10:59 -04:00
request.rs Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
request_data.rs refined error model (#2253) 2021-06-17 17:57:58 +01:00
resource.rs Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
responder.rs refined error model (#2253) 2021-06-17 17:57:58 +01:00
rmap.rs use ahash for internal hashmaps 2021-01-04 04:29:07 +00:00
route.rs `Route::service` (#2262) 2021-06-23 21:30:06 +01:00
scope.rs fix scope and resource middleware data access (#2288) 2021-06-25 13:19:42 +01:00
server.rs Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
service.rs Various refactorings (#2281) 2021-06-26 15:33:43 +01:00
test.rs simplify `ConnectionInfo::new` (#2282) 2021-06-26 00:39:06 +01:00
web.rs app data doc improvements 2021-06-24 15:10:51 +01:00