Rob Ede
8ffb1f2011
update files changelog
2021-04-19 02:11:07 +01:00
Ibraheem Ahmed
26e9c80626
Named file service ( #2135 )
2021-04-18 23:34:51 +01:00
Rob Ede
f462aaa7b6
prepare actix-test release 0.1.0-beta.2
2021-04-17 15:53:54 +01:00
Rob Ede
b2d6b6a70c
prepare web release 4.0.0-beta.6
2021-04-17 15:28:13 +01:00
Rob Ede
5747f84736
bump utils to stable v3
2021-04-17 02:07:33 +01:00
Rob Ede
d8f56eee3e
bump service to stable v2
2021-04-16 20:28:21 +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
44c55dd036
remove cookie support from -http ( #2065 )
2021-04-09 18:07:10 +01:00
Rob Ede
e0b2246c68
prepare test release 0.1.0-beta.1
2021-04-02 10:03:01 +01:00
Rob Ede
8561263545
prepare files release 0.6.0-beta.4
2021-04-02 09:43:51 +01:00
Rob Ede
546e7c5da4
prepare web release 4.0.0-beta.5
2021-04-02 09:37:51 +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
fakeshadow
222acfd070
Fix build for next actix-tls-beta release ( #2122 )
2021-03-29 13:45:48 +01:00
Rob Ede
3188ef5731
don't use rust annotation on code doc blocks
2021-03-25 08:45:52 +00:00
fakeshadow
351286486c
fix clippy warning on nightly ( #2088 )
...
* fix clippy warning on nightly
2021-03-19 19:25:35 +08:00
Rob Ede
3451d6874f
prepare actix-files release 0.6.0-beta.3
2021-03-09 23:39:40 +00:00
Rob Ede
4b46351d36
prepare actix-web release 4.0.0-beta.4
2021-03-09 23:31:44 +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
Daniel T. Rodrigues
abc7fd374b
update example links ( #2036 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-02-28 21:41:07 +00:00
fakeshadow
badae2f8fd
add local_address bind for client builder ( #2024 )
2021-02-27 22:31:14 +00:00
Luka Zakrajšek
2cc6b47fcf
Use http-range library for HttpRange ( #2003 )
2021-02-16 18:48:16 +00:00
Rob Ede
31d9ed81c5
change rustfmt line width to 96
2021-02-11 23:03:17 +00:00
Rob Ede
e18464b274
bump actix web versions in deps
2021-02-10 12:57:13 +00:00
Rob Ede
a290e58982
prepare beta 2 release set ( #1975 )
2021-02-10 12:10:03 +00:00
Jens Reidel
50309aa295
Use askama-escape for html escaping ( #1953 )
2021-02-07 04:50:23 +00:00
fakeshadow
41bc04b1c4
Use immutable reference of service state. Update awc dns resolver. ( #1905 )
2021-02-07 01:00:40 +00:00
fakeshadow
20cf0094e5
fix master branch build. change web::block output type. ( #1957 )
2021-02-06 16:23:59 +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
46a8f28b74
fix actix-files doc about thread pool ( #1898 )
2021-01-11 17:27:33 +00:00
fakeshadow
fe392abeb4
remove actix-threadpool.use actix_rt::task::spawn_blocking ( #1878 )
2021-01-09 16:04:19 +00:00
fakeshadow
d40ae8c8ca
use sync method on Responder trait ( #1891 )
2021-01-08 22:17:19 +00:00
Rob Ede
c09186a2c0
prepare v4 beta releases ( #1881 )
2021-01-07 20:02:08 +00:00
fakeshadow
32de9f8840
Tokio 1.0 ( #1813 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-01-03 23:47:04 +00:00
Rob Ede
a1b00b2cd0
change unreleased year
2021-01-02 00:12:18 +00:00
Rob Ede
2a2a20c3e7
bump msrv to 1.46 ( #1858 )
2020-12-28 00:44:15 +00:00
Rob Ede
8c9ea43e23
address clippy warnings
2020-12-27 20:54:04 +00:00
Rob Ede
b373e1370d
prepare files 0.5.0 release
2020-12-26 04:05:45 +00:00
Edoardo Morandi
404b5a7709
Add optional support for hidden files/directories ( #1811 )
2020-12-26 03:36:15 +00:00
Rob Ede
31057becca
prepare actix-files release 0.4.1
2020-11-24 20:33:23 +00:00
Rob Ede
f1a9b45437
improve docs for Files::new
2020-11-24 20:23:09 +00:00
Aravinth Manivannan
a929209967
actix-files
intra-doc migration (#1785 )
2020-11-10 23:54:38 +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
64a2c13cdf
the big three point oh ( #1668 )
2020-09-11 13:50:10 +01:00
Rob Ede
7787638f26
fix CI clippy warnings ( #1664 )
2020-09-10 14:46:35 +01:00
Rob Ede
059d1671d7
prepare release beta 4 ( #1659 )
2020-09-09 22:14:11 +01:00
Yuki Okushi
5802eb797f
awc,web: Bump up to next beta releases ( #1638 )
2020-08-18 01:08:40 +09:00
Yuki Okushi
59ad1738e9
web: Bump up to 3.0.0-beta.2 ( #1636 )
2020-08-17 11:32:38 +01:00
Yuki Okushi
aa2bd6fbfb
http: Bump up to 2.0.0-beta.3 ( #1630 )
2020-08-14 19:42:14 +09:00
Yuki Okushi
92b5bcd13f
Check format and tweak CI config ( #1619 )
2020-07-22 00:28:33 +01:00
Rob Ede
2fd96c03e5
prepare beta.1 release for multipart/files/actors ( #1605 )
2020-07-16 11:38:57 +01:00
Yuki Okushi
1382094c15
Avoid using deprecated /
in license field
2020-07-14 11:19:56 +09:00
Yuki Okushi
f2d641b772
Update v_htmlescape
to 0.10
2020-07-02 17:52:42 +09:00
Rob Ede
a70e599ff5
re-export rt in web and add main macro ( #1575 )
2020-06-22 20:09:48 +01:00
Yuki Okushi
75a34dc8bc
files: Bump up to 0.3.0-alpha.1
2020-05-23 18:47:08 +09:00
Yuki Okushi
fe89ba7027
Update actix-web
dependency to 3.0.0-alpha.3
2020-05-21 17:32:36 +09:00
Yuki Okushi
9cfb32c780
Update actix-http
to 2.0.0-alpha.4
2020-05-21 15:22:42 +09: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
996f1d7eae
bump msrv in ci and readme
2020-05-13 01:57:37 +01:00
Yuki Okushi
b66c3083a5
Update the actix-web
dependency to 3.0.0-alpha.2
2020-05-08 06:46:42 +09:00
Yuki Okushi
9d0c80b6ce
Update actix-http deps
2020-05-08 02:35:45 +09:00
Rob Ede
5b0f7fff69
fix spelling errors in doc comments
2020-04-21 04:09:35 +01:00
Yuki Okushi
1b28a5d48b
Update actix-web
dependency to 3.0.0-alpha.1
2020-03-12 03:03:50 +09:00
Yuki Okushi
7941594f94
Update actix-http
dependency
2020-03-08 00:50:20 +09:00
Yuki Okushi
3b675c9125
Update actix-http to 2.0.0-alpha.1
2020-02-27 12:39:04 +09:00
Yuki Okushi
6406f56ca2
Fix/suppress warnings
2020-02-08 02:20:01 +09: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
Nikolay Kim
48476362a3
update changes
2019-12-20 17:59:34 +06:00
Nikolay Kim
8b8a9a995d
bump ver
2019-12-20 17:36:48 +06:00
Nikolay Kim
1732ae8c79
fix Bodyencoding trait usage
2019-12-18 09:30:14 +06:00
Nikolay Kim
01613f334b
Move BodyEncoding to dev module #1220
2019-12-16 17:22:26 +06:00
Nikolay Kim
fac6dec3c9
update deps
2019-12-13 12:36:15 +06:00
Emilio González
a43a005f59
Log path if it is not a directory ( #1208 )
2019-12-12 07:04:53 +06:00
Nikolay Kim
131c897099
upgrade to actix-net release
2019-12-11 19:20:20 +06:00
Nikolay Kim
1729a52f8b
prepare alpha.3 release
2019-12-07 13:00:03 +06:00
Nikolay Kim
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00
Nikolay Kim
c7ed6d3428
update version
2019-12-03 16:35:31 +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
f73f97353b
refactor ResponseError trait
2019-11-26 16:07:39 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
c1c44a7dd6
upgrade derive_more
2019-11-25 17:59:14 +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
ff62facc0d
disable unmigrated crates
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
Nikolay Kim
b2934ad8d2
prep actix-file release
2019-11-06 11:25:26 -08:00
Nikolay Kim
885ff7396e
prepare actox-http release
2019-11-06 10:35:13 -08: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
Nikolay Kim
062e51e8ce
prep actix-file release
2019-10-14 21:26:26 +06: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
b1cb72d088
update url crate
2019-08-13 11:03:24 -07: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
c96068e78d
bump version
2019-07-20 11:46:21 +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
686e5f1595
update deps
2019-06-16 22:10:22 +06:00
Nikolay Kim
bf48798bce
Content-Length is 0 for NamedFile HEAD request #914
2019-06-13 15:27:21 +06:00
simlay
bfbac4f875
Upgraded actix-web dependency and set default-features to false ( #900 )
2019-06-07 09:34:30 +06:00
Nikolay Kim
6d2e190c8e
prepare actix-files release
2019-06-02 13:09:21 +06:00
Nikolay Kim
15cdc680f6
Static files are incorrectly served as both chunked and with length #812
2019-06-01 17:57:40 +06:00
Nikolay Kim
a1b40f4314
add license files
2019-06-01 17:25:29 +06:00
Nikolay Kim
35eb378585
prepare actix-files release
2019-05-25 02:02:28 -07:00
Miles Granger
6db625f55b
Update actix-web dep to 1.0.0-rc ( #864 )
2019-05-25 01:52:23 -07:00
Nikolay Kim
babf48c550
fix NamedFile last-modified check #820
2019-05-22 21:21:12 -07:00
Nikolay Kim
5a90e33bcc
update deps
2019-05-12 12:01:24 -07:00
Nikolay Kim
36d017dcc6
update deps
2019-05-12 11:41:43 -07:00
Nikolay Kim
df08baf67f
update actix-net dependencies
2019-05-12 08:34:51 -07:00
Nikolay Kim
3d1af19080
prepare actix-http release
2019-05-04 19:51:13 -07:00
Nikolay Kim
24bd5b1344
update readmes
2019-04-29 20:47:21 -07:00
Nikolay Kim
f0789aad05
update dep versions
2019-04-21 09:03:46 -07:00
Nikolay Kim
7e480ab2f7
beta.1 release
2019-04-20 21:16: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
d7040dc303
alpha.6 release
2019-04-14 08:09:32 -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
1f2b15397d
prepare alpha5 release
2019-04-12 14:00:45 -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
748289f0ff
use custom headers map; more optimizations
2019-04-06 15:02:02 -07:00
Nikolay Kim
9c205f9f1d
update tests for content-encoding
2019-04-04 14:00:56 -07:00
Nikolay Kim
442f5057dd
alpha.3 release
2019-04-02 21:49:31 -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
a20b9fd354
prepare aplha2 release
2019-03-29 22:06:14 -07:00
Nikolay Kim
d846328f36
fork cookie crate
2019-03-29 21:13:39 -07:00
Nikolay Kim
9c198a0d29
alpha.1 release
2019-03-28 13:46:26 -07:00
Nikolay Kim
e254fe4f9c
allow to override response body encoding
2019-03-27 11:29:31 -07:00
Nikolay Kim
9451ba71f4
update cargo files
2019-03-26 12:50:51 -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
e37e81af0b
simplify Payload extractor
2019-03-24 17:00:59 -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
85664cc6f7
update deps
2019-03-09 14:56:18 -08: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
1151b5bf7c
fix crate name
2019-03-06 23:43:47 -08:00
Nikolay Kim
e56691bcf2
rename to Files
2019-03-06 23:39:08 -08:00