mirror of https://github.com/fafhrd91/actix-web
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. |
||
---|---|---|
.. | ||
error | ||
http | ||
middleware | ||
response | ||
types | ||
app.rs | ||
app_service.rs | ||
config.rs | ||
data.rs | ||
dev.rs | ||
extract.rs | ||
guard.rs | ||
handler.rs | ||
helpers.rs | ||
info.rs | ||
lib.rs | ||
request.rs | ||
request_data.rs | ||
resource.rs | ||
responder.rs | ||
rmap.rs | ||
route.rs | ||
scope.rs | ||
server.rs | ||
service.rs | ||
test.rs | ||
web.rs |