Adam Kewley
412e54ce10
Fixed documentation typo for actix-files ( #1278 )
2020-01-15 11:09:58 -08:00
Nikolay Kim
c7f3915779
update actix-service dep
2019-12-22 16:39:25 +04:00
Yuki Okushi
f45db1f909
Enable GitHub Actions and fix file URL behavior ( #1232 )
...
* Use GitHub Actions
* Fix unused imports on Windows
* Fix test for Windows
* Stop to run CI for i686-pc-windows-msvc for now
* Use `/` instead of `\` on Windows
* Add entry to changelog
* Prepare actix-files release
2019-12-22 16:43:41 +09:00
Emilio González
a43a005f59
Log path if it is not a directory ( #1208 )
2019-12-12 07:04:53 +06:00
Nikolay Kim
14075ebf7f
use released versions of actix-net
2019-12-02 23:33:39 +06:00
Nikolay Kim
068f047dd5
update service factory config
2019-12-02 21:37:13 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
57981ca04a
update tests to async handlers
2019-11-22 11:49:35 +06:00
Nikolay Kim
69cadcdedb
migrate actix-files
2019-11-21 16:02:17 +06:00
Nikolay Kim
3127dd4db6
migrate actix-web to std::future
2019-11-21 16:02:17 +06:00
Hung-I Wang
edcde67076
Fix escaping/encoding problems in Content-Disposition header ( #1151 )
...
* Fix filename encoding in Content-Disposition of acitx_files::NamedFile
* Add more comments on how to use Content-Disposition header properly & Fix some trivial problems
* Improve Content-Disposition filename(*) parameters of actix_files::NamedFile
* Tweak Content-Disposition parse to accept empty param value in quoted-string
* Fix typos in comments in .../content_disposition.rs (pointed out by @JohnTitor)
* Update CHANGES.md
* Update CHANGES.md again
2019-11-06 06:08:37 -08:00
Roberto Huertas
a48e616def
feat(files): add possibility to redirect to slash-ended path ( #1134 )
...
When accessing to a folder without a final slash, the index file will be loaded ok, but if it has
references (like a css or an image in an html file) these resources won't be loaded correctly if
they are using relative paths. In order to solve this, this PR adds the possibility to detect
folders without a final slash and make a 302 redirect to mitigate this issue. The behavior is off by
default. We're adding a new method called `redirect_to_slash_directory` which can be used to enable
this behavior.
2019-10-14 21:23:15 +06:00
Nikolay Kim
a464ffc23d
prepare actix-files release
2019-10-08 10:13:16 +06:00
Naim A
4de2e8a898
[actix-files] Allow user defined guards for NamedFile (actix#1113) ( #1115 )
...
* [actix-files] remove request method checks from NamedFile
* [actix-files] added custom guard checks to FilesService
* [actix-files] modify method check tests (NamedFile -> Files)
* [actix-files] add test for custom guards in Files
* [actix-files] update changelog
2019-10-08 10:09:40 +06:00
Nikolay Kim
55179d6ab2
update dependencies
2019-08-13 10:48:11 -07:00
Yuki Okushi
dbe4c9ffb5
Replace deprecated methods in actix_files ( #1027 )
...
* Bump up mime_guess to 2.0.1
* Replace deprecated methods
* Update CHANGE.md
2019-08-12 05:43:29 +09:00
erikdesjardins
52372fcbea
actix-files: "Specified path is not a directory" error now includes the path ( #1004 )
2019-07-23 06:41:58 +06:00
Nikolay Kim
7bca1f7d8d
Allow to disable Content-Disposition header #686
2019-07-20 11:43:49 +06:00
Nikolay Kim
2a2d7f5768
nightly clippy warnings
2019-07-17 15:53:51 +06:00
Nikolay Kim
4092c7f326
clippy warnings
2019-07-17 15:08:30 +06:00
Nikolay Kim
7b1dcaffda
cleanup deprecation warning for Box<dyn>
2019-07-17 11:44:39 +06:00
Nikolay Kim
a3a78ac6fb
Do not set Content-Length header, let actix-http set it #930
2019-06-28 11:42:20 +06:00
Nikolay Kim
bf48798bce
Content-Length is 0 for NamedFile HEAD request #914
2019-06-13 15:27:21 +06:00
Nikolay Kim
df08baf67f
update actix-net dependencies
2019-05-12 08:34:51 -07:00
Nikolay Kim
aa255298ef
make ServiceRequest::from_parts private, as it is not safe to create from parts
2019-04-18 16:03:13 -07:00
Nikolay Kim
14252f5ef2
use test::call_service
2019-04-15 09:09:21 -07:00
Nikolay Kim
09cdf1e302
Rename RouterConfig to ServiceConfig
2019-04-15 07:32:49 -07:00
Nikolay Kim
ee33f52736
make extractor config type explicit
2019-04-13 16:35:25 -07:00
Nikolay Kim
4f30fa9d46
Remove generic type for request payload, always use default
2019-04-13 14:50:54 -07:00
Nikolay Kim
53da55aa3c
alpha4 release
2019-04-07 23:42:05 -07:00
Nikolay Kim
aa78565453
use objects pool for HttpRequest; optimize nested services call
2019-04-07 23:06:21 -07:00
Nikolay Kim
75b213a6f0
refactor FromRequest trait
2019-04-07 14:43:07 -07:00
Nikolay Kim
9c205f9f1d
update tests for content-encoding
2019-04-04 14:00:56 -07:00
Nikolay Kim
4227cddd30
fix dev dependencies
2019-04-02 15:00:10 -07:00
Nikolay Kim
96fd61f3d5
rust 1.31.0 compatibility
2019-04-01 10:26:09 -07:00
Nikolay Kim
15c5a3bcfb
fix test
2019-03-31 18:57:54 -07:00
Nikolay Kim
ab45974e35
add default handler
2019-03-31 18:19:18 -07:00
Nikolay Kim
e18227cc3d
add wrap_fn to App and Scope
2019-03-25 13:43:02 -07:00
Douman
d30027ac5b
Remove StaticFilesConfig ( #731 )
...
* Remove StaticFilesConfig
* Applying comments
* Impl Clone for Files<S>
2019-03-25 13:02:37 -07:00
Nikolay Kim
7242d96701
map BlockingError
2019-03-11 23:19:05 -07:00
Nikolay Kim
0f0d6b65ca
update service request/response location
2019-03-10 17:16:28 -07:00
Nikolay Kim
79875ea039
update deps
2019-03-10 14:22:53 -07:00
Nikolay Kim
54678308d0
propogate app config with http request; add tests for url_for
2019-03-09 14:06:24 -08:00
Nikolay Kim
aadcdaa3d6
add resource map, it allow to check if router has resource and it allows to generate urls for named resources
2019-03-09 07:39:34 -08:00
Nikolay Kim
d77954d19e
fix files test
2019-03-07 12:32:40 -08:00
Nikolay Kim
22708e78a9
added proc-macros for route registration
2019-03-07 11:09:42 -08:00
Nikolay Kim
e56691bcf2
rename to Files
2019-03-06 23:39:08 -08:00