1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-05-19 16:58:14 +00:00
Commit graph

83 commits

Author SHA1 Message Date
Rob Ede 79a38e0628
apply standard formatting 2023-07-17 02:38:12 +01:00
Rob Ede 67efa4a4db
migrate to doc_auto_cfg 2023-02-26 21:55:25 +00:00
Rob Ede 6f0a6bd1bb
address clippy lints
For intrepid commit message readers:
The choice to add allows for the inlined format args lint instead of actually
inlining them is not very clear because our actual real world MSRV is not clear.
We currently claim 1.60 is our MSRV but this is mainly due to dependencies. I'm
fairly sure that we could support < 1.58 if those deps are outdated in a users
lockfile. We'll remove these allows again at some point soon.
2023-01-01 20:56:34 +00:00
Rob Ede a03a2a0076
deprecate NamedFile::set_status_code 2022-03-10 02:54:06 +00:00
Rob Ede d7c5c966d2
remove impl Future for HttpResponse (#2601) 2022-01-24 11:56:01 +00:00
Rob Ede bc89f0bfc2
s/example/examples 2022-01-21 16:56:33 +00:00
Rob Ede 6c97d448b7
update tokio-uring to 0.2 (#2583) 2022-01-12 17:53:36 +00:00
Ali MJ Al-Nasrawy 374dc9bfc9
files: percent-decode url path (#2398)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-01-04 12:54:11 +00:00
Rob Ede 0bc4ae9158
remove BodyEncoding trait (#2565) 2022-01-03 18:46:04 +00:00
Rob Ede 07f2fe385b
standardize crate level lints 2021-12-08 06:09:56 +00:00
fakeshadow dd347e0bd0
implement io-uring for actix-files (#2408)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-11-22 01:19:09 +00:00
Rob Ede 591abc37c3
add test runtime macro (#2409) 2021-10-19 17:30:32 +01:00
Ali MJ Al-Nasrawy 09afd033fc
files: file path filtering closure (#2274)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-06-25 14:21:57 +01:00
Ali MJ Al-Nasrawy 6893773280
files: allow show_files_listing() with index_file() (#2228) 2021-06-19 21:00:31 +01:00
Ali MJ Al-Nasrawy 8d124713fc
files: inline disposition for common web app file types (#2257) 2021-06-16 20:33:22 +01:00
Ali MJ Al-Nasrawy e5b713b04a
files: Fix redirect_to_slash_directory() when used with show_files_listing() (#2225) 2021-05-26 10:42:29 +01:00
Rob Ede 75867bd073
clean up files service docs and rename method
follow on from #2046
2021-04-22 18:31:21 +01:00
Ibraheem Ahmed 26e9c80626
Named file service (#2135) 2021-04-18 23:34:51 +01:00
Ali MJ Al-Nasrawy ce50cc9523
files: Don't use canonical path when serving file (#2156) 2021-04-13 05:28:30 +01:00
Rob Ede c54a0713de
migrate integration testing to new crate (#2112) 2021-04-02 08:26:59 +01:00
Rob Ede c8ed8dd1a4
migrate to -utils beta 4 (#2127) 2021-04-01 15:26:13 +01:00
Rob Ede 3188ef5731
don't use rust annotation on code doc blocks 2021-03-25 08:45:52 +00:00
Florian Dreschner fb019f15b4
test(files): Fix test and remove outdated case (#2037)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-02-28 23:01:59 +00:00
Rob Ede 31d9ed81c5
change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
fakeshadow 41bc04b1c4
Use immutable reference of service state. Update awc dns resolver. (#1905) 2021-02-07 01:00:40 +00:00
Rob Ede b1dd8d28bc
response header rework (#1869) 2021-01-15 02:11:10 +00:00
Robin Schoonover a919d2de56
actix-files: Fix If-(Un)Modified to not consider sub-seconds (#1887) 2021-01-11 18:18:23 +00:00
fakeshadow fe392abeb4
remove actix-threadpool.use actix_rt::task::spawn_blocking (#1878) 2021-01-09 16:04:19 +00:00
Rob Ede 34b23f31c9
prepare files release 0.4.0 2020-10-06 22:08:33 +01:00
Rob Ede 26c1a901d9
add files preference for utf8 text responses (#1714) 2020-10-06 21:56:28 +01:00
Rob Ede f7bcad9567
split up files lib (#1685) 2020-09-20 23:18:25 +01:00
Rob Ede 7787638f26
fix CI clippy warnings (#1664) 2020-09-10 14:46:35 +01:00
Yuki Okushi 92b5bcd13f
Check format and tweak CI config (#1619) 2020-07-22 00:28:33 +01:00
Yuki Okushi 245dd471dd
files: Minimize futures dependencies 2020-05-19 08:24:34 +09:00
Omid Rad b0866a8a0f
Actix-files will always send SizedStream (#1496)
* Fixes #1384

* There is no need to set no_chunking

* Test content-length for static files

* Update the tests

* Add Changelog

* Try to simply fix Windows test issues!

Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-05-18 06:54:42 +09:00
Rob Ede 5b0f7fff69
fix spelling errors in doc comments 2020-04-21 04:09:35 +01:00
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