Commit Graph

122 Commits

Author SHA1 Message Date
Rob Ede 6c97d448b7
update tokio-uring to 0.2 (#2583) 2022-01-12 17:53:36 +00:00
Rob Ede 85c9b1a263
move quoter 2022-01-04 12:58:40 +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 93754f307f
try path config from Data as well 2022-01-04 04:08:46 +00:00
Rob Ede c7639bc3be
document quoter 2022-01-04 03:48:12 +00:00
Rob Ede 0bc4ae9158
remove `BodyEncoding` trait (#2565) 2022-01-03 18:46:04 +00:00
Rob Ede e890307091
Fix AcceptEncoding header (#2501) 2022-01-03 13:17:57 +00:00
Rob Ede 4616ca8ee6
rework `Guard` trait (#2552) 2021-12-28 02:37:13 +00:00
Rob Ede 11ee8ec3ab
align remaining header map terminology (#2510) 2021-12-13 16:08:08 +00:00
Rob Ede 07f2fe385b
standardize crate level lints 2021-12-08 06:09:56 +00:00
Rob Ede 406f694095
standardize rustfmt max_width 2021-12-08 06:01:11 +00:00
Rob Ede 2d053b7036
remove `actix_http::http` module (#2488) 2021-12-05 14:37:20 +00:00
Rob Ede c7c02ef99d
body ergonomics v3 (#2468) 2021-12-04 19:40:47 +00:00
Rob Ede a978b417f3
use actix ready future in remaining return types 2021-11-30 13:11:41 +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 194a691537
files: 304 Not Modified responses omit Content-Length header (#2453) 2021-11-19 14:04:12 +00:00
Rob Ede 56ee97f722
add files path traversal tests 2021-11-18 18:14:34 +00:00
Rob Ede 591abc37c3
add test runtime macro (#2409) 2021-10-19 17:30:32 +01:00
Arniu Tseng 8ae278cb68
Remove `FromRequest::Config` (#2233)
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-09-11 01:11:16 +01:00
Ali MJ Al-Nasrawy f9da6e48e0
ResourceDef: define behavior for prefix with trailing slash (#2355)
* ResourceDef: define behavior

* fix tests

* add scope test

* revert firestorm bump

* update changelog

* fmt

Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-08-30 20:05:49 +01:00
Rob Ede 5f412c67db
clippy 2021-08-13 18:49:58 +01:00
Igor Aleksanov 262c6bc828
Various refactorings (#2281)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-06-26 15:33:43 +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 812269d656
clarify docs for BodyEncoding::encoding() (#2258) 2021-06-10 15:38:35 +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
Keita Nonaka b1de196509
Fix clippy warnings (#2217) 2021-05-15 01:13:33 +01:00
Rob Ede f55e8d7a11
remove error field from response 2021-05-09 20:15:48 +01:00
Rob Ede 900c9e270e
remove responsebody indirection from response (#2201) 2021-05-09 20:12:48 +01:00
Rob Ede 947caa3599
examples use info log level by default 2021-05-06 20:24:18 +01:00
Rob Ede 6a29a50f25
files doc wording 2021-04-22 18:37:45 +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
tglman f44a0bc159
add support of filtering guards in Files of actix-files (#2046)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-22 18:13:13 +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 44c55dd036
remove cookie support from -http (#2065) 2021-04-09 18:07:10 +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
fakeshadow 351286486c
fix clippy warning on nightly (#2088)
* fix clippy warning on nightly
2021-03-19 19:25:35 +08: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
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
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