1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

Initial config for static files (#405)

This commit is contained in:
Douman
2018-07-20 07:49:25 +03:00
committed by GitHub
parent f6e35a04f0
commit a751df2589
2 changed files with 202 additions and 32 deletions

View File

@ -4,6 +4,9 @@
### Added
* Add `fs::StaticFileConfig` to provide means of customizing static file services. It allows to map
`mime` to `Content-Disposition`, specify whether to use `ETag` and `Last-Modified` and allowed methods.
* Add `.has_prefixed_resource()` method to `router::ResourceInfo` for route matching with prefix awareness
* Add `HttpMessage::readlines()` for reading line by line.