Rob Ede
2125aca2c5
Rustls v0.22 support ( #3275 )
2024-02-03 23:55:01 +00:00
Vojtech Kral
d453b15ddd
docs: mention result is wrapped in Data in data_factory() docs ( #3251 )
2024-01-18 12:32:27 +00:00
John Vandenberg
2915bb7d90
chore: fix typos ( #3248 )
2024-01-16 11:29:06 +00:00
Rob Ede
ac04d80d8e
docs: better docs for peer_addr methods
2024-01-08 15:17:40 +00:00
Rob Ede
9dc3ad754e
chore(actix-web): prepare release 4.4.1
2023-12-23 19:19:10 +00:00
Rob Ede
0d9ca4d939
chore(actix-http): prepare release 3.5.0
2023-12-23 19:17:56 +00:00
Rob Ede
5e5e5d8315
chore: remove allow(uninlined_format_args)
2023-12-16 10:33:00 +00:00
Rob Ede
c7a0af31d3
docs: doc and metadata tweaks
2023-12-16 10:33:00 +00:00
Hangyuan
0a312037ea
Corrected a typo in mod.rs ( #3218 )
2023-12-10 15:53:05 +00:00
Paul
2fe5189954
Do not encode zero-sized response bodies ( #3199 )
...
* Do not encode zero-sized response bodies
* Test empty response remains empty after compression
2023-11-26 20:57:19 +00:00
Amit Upadhyay
c0615f28ed
Make compression middleware prefer brotli over zstd over gzip ( #3189 )
...
* AcceptEncoding.preference() prefers brotli > zstd > gzip
* AcceptEncoding.{ranked,negotiate}() prefers brotli > zstd > gzip
* changelog entry
* use browser-realistic encoding tests
* fix choosing identity when q=0
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-11-19 18:54:08 +00:00
Marcio Ordonez
9d1f75d349
fix: content type required flag ( #3168 )
...
* fix: content type required flag
* clarify comments for invalid json mime type
* remove pr reference
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-11-19 11:22:55 +00:00
Rob Ede
989548e36a
chore: remove git from repo URLs
2023-11-10 14:06:38 +00:00
dependabot[bot]
b78f6da05f
build(deps): update zstd requirement from 0.12 to 0.13 ( #3165 )
...
* build(deps): update zstd requirement from 0.12 to 0.13
Updates the requirements on [zstd](https://github.com/gyscos/zstd-rs ) to permit the latest version.
- [Release notes](https://github.com/gyscos/zstd-rs/releases )
- [Commits](https://github.com/gyscos/zstd-rs/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: zstd
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: update changelogs
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-10-30 01:18:45 +00:00
Rob Ede
ce18f35e03
docs: improve HttpServer docs on worker / bind relationship wrt factory instantiations
2023-10-29 18:48:03 +00:00
Rob Ede
9e51116da2
chore: remove unusable re-export
2023-10-29 01:53:03 +00:00
Rob Ede
05b4c4964f
update handler failure mode docs
2023-10-11 16:07:18 +02:00
Rob Ede
043bc88f73
docs: add note about rt::spawn compat with tokio::main
2023-09-15 22:20:48 +01:00
Rob Ede
a7983351be
docs: fix Data doc
2023-09-12 04:45:36 +01:00
Rob Ede
215a52f565
chore: avoid single char error bindings
2023-09-03 19:09:42 +01:00
Rob Ede
2b40033a9c
chore(actix-web): prepare release 4.4.0
2023-08-29 01:54:40 +01:00
Rob Ede
45fdc08788
chore(actix-http): prepare release 3.4.0
2023-08-29 01:51:54 +01:00
Rob Ede
84eb8b306c
chore: remove broken links from changelogs
2023-08-29 01:14:33 +01:00
Rob Ede
384ca0a2cd
chore: remove dates from changelogs
2023-08-29 01:14:33 +01:00
Rob Ede
905c30af86
Actix Web Rustls v0.21 support ( #3116 )
2023-08-29 01:11:11 +01:00
Wyatt Herkamp
cbf5e948db
Implement Deserialize and Default for actix_web::Data ( #3109 )
...
* Implement Default and Deserialize for Data
* FMT
* Change Log
* tweak changelog
* chore: whitespace
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-08-27 22:47:05 +00:00
Rob Ede
55c15f5bbf
minimum viable rustls v0.21 support ( #3112 )
2023-08-27 00:07:11 +01:00
Rob Ede
1c60978a89
chore: move codecov file
2023-08-03 06:28:45 +01:00
Rob Ede
b4fcdffdc3
chore: update msrv to 1.68 ( #3094 )
2023-08-01 19:33:32 +01:00
Rob Ede
605cd7c540
add startup logging to basic example
2023-08-01 18:06:59 +01:00
Rob Ede
ff8fd2f7b5
modernize ContentLength
2023-07-22 18:01:59 +01:00
Rob Ede
6a0ea51b15
add `ContentLength` typed header ( #2490 )
2023-07-22 03:16:01 +01:00
Rob Ede
146011018e
add payload to_bytes helpers ( #3083 )
2023-07-22 02:02:29 +01:00
Rob Ede
3eb5a059ad
chore: address clippy warnings
2023-07-20 11:42:20 +01:00
cyqsimon
1040bc3d17
Add missing status code constructor methods on `HttpResponse` ( #3042 )
2023-07-20 10:36:49 +00:00
Rob Ede
db99da5daf
do not compress media types ( #3075 )
...
* misc: add temporary nix file
* Add test to check content type image/*
* misc: add unit test for expected behaviour jpeg
* feat(compress): add compress function to middleware
* feat(compress): use response content type to decide compress
* feat(compress): give more control to the user
* misc: improve default compress function
* add Compress::with_predicate
* remove predicate options
* assert auto traits on Compress
* fix changelog
---------
Co-authored-by: William R. Arellano <arellanowr@gmail.com>
2023-07-19 20:24:32 +01:00
Nathan Shaaban
80185ce741
Hide authorization header in httprequest debug output ( #2953 )
...
Co-authored-by: Nathan Shaaban <86252985+nshaaban-cPacket@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-07-19 18:51:17 +00:00
nerix
b061f00421
Provide documentation in the `middleware` module ( #3070 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-07-19 10:24:14 +00:00
James Rowe
bf03207ca9
Add http2 optional feature ( #3072 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-07-17 20:59:10 +00:00
Rob Ede
79a38e0628
apply standard formatting
2023-07-17 02:38:12 +01:00
Rob Ede
60c76c5e10
revert http2 feature flag change
2023-07-17 02:19:26 +01:00
Rob Ede
e4e839f4d1
only enable actix-http's http2 feature when TLS features are enabled
...
closes #3071
2023-07-17 01:51:10 +01:00
Rob Ede
241da6e081
update MSRV to 1.65 ( #3059 )
2023-07-02 01:09:15 +01:00
Rob Ede
1072d0dacf
address lints
2023-06-09 15:15:09 +01:00
Imamuzzaki Abu Salam
58c19b817f
docs(actix-web/README.md): update benchmark link ( #3046 )
...
Round 20 doesn't have actix score, but round 21 has. So I changed it to the round 21 link for everyone to see this is one of the best frameworks for Web/API.
2023-06-09 14:29:10 +01:00
Rob Ede
8b2b755cde
fix guard mod docs
2023-05-06 11:37:11 +01:00
Rob Ede
e81dc768dc
expose h2c methods on HttpServer ( #2999
...
* expose h2c methods on HttpServer
* update h2c docs
2023-04-06 03:11:28 +01:00
Rob Ede
5e29726c4f
standardize error messages in actix-http
2023-03-13 17:17:02 +00:00
Rob Ede
19c9d858f2
support 16 extractors
2023-03-12 04:29:22 +00:00
Rob Ede
3fc01c4887
refactor server binding
2023-03-11 22:17:52 +00:00
Rob Ede
20c7c07dc0
fix http version req
2023-03-02 16:21:13 +00:00
Rob Ede
d7c6774ad5
add resource method helpers ( #2978 )
2023-03-02 08:22:22 +00:00
Rob Ede
67efa4a4db
migrate to doc_auto_cfg
2023-02-26 21:55:25 +00:00
Rob Ede
d77bcb0b7c
update date in unreleased changelog sections
2023-02-26 21:45:36 +00:00
Rob Ede
ad27150c5f
fix doc tests
2023-02-26 14:14:04 +00:00
Rob Ede
8d5d6a2598
tweak err handlers docs
2023-02-26 13:28:19 +00:00
Rob Ede
e97329eb2a
bump socket2 dep to 0.5
2023-02-26 13:28:19 +00:00
Rob Ede
fdfb3d45db
remove direct dep on ahash for client pool
2023-02-26 03:50:36 +00:00
Rob Ede
4e05629368
specify safe tokio version range
2023-02-26 03:47:25 +00:00
Rob Ede
e35ec28cd2
prepare actix-web release 4.3.1
2023-02-26 03:44:34 +00:00
Rob Ede
35006e9cae
prepare actix-web-codegen release 4.2.0
2023-02-26 03:42:27 +00:00
Rob Ede
e2fed91efd
format markdown with prettier
2023-02-26 03:26:51 +00:00
Jacob Halsey
d4b833ccf0
actix-multipart: Feature: Add typed multipart form extractor ( #2883 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-02-26 03:26:06 +00:00
Rob Ede
358c1cf85b
improve docs for app_config methods
2023-02-22 23:06:23 +00:00
Lioness100
42193bee29
fix typos ( #2982 )
2023-02-20 08:11:16 +00:00
Roy Wellington Ⅳ
85d88ffada
Fix minor typo in Markdown ( #2977 )
2023-02-12 02:47:42 +00:00
yinho999
bf19a0e761
added body manipulation example for error handlers ( #2973 )
...
Closes https://github.com/actix/actix-web/issues/2856
2023-02-09 20:37:01 +00:00
edgerunnergit
65c0545a7a
added support for creating custom methods with route macro ( #2969 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
Closes https://github.com/actix/actix-web/issues/2893
2023-02-06 12:40:41 +00:00
Rob Ede
4bff1d0abe
require safe tokio version range
...
see https://rustsec.org/advisories/RUSTSEC-2023-0005
2023-02-03 20:35:19 -05:00
Rob Ede
fa106da555
refactor: move Host guard into own module
2023-01-30 11:36:12 -05:00
Rob Ede
df6fde883c
prepare actix-web release 4.3.0
2023-01-21 18:57:42 +00:00
Rob Ede
dd9ac4d9b8
prepare actix-http release 3.3.0
2023-01-21 18:52:57 +00:00
Zach
6627109984
Add fallible versions of test_utils helpers to actix-test ( #2961 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-01-11 11:43:51 +00:00
Rob Ede
b9f54c8796
use secure tokio version range
...
see RUSTSEC-2023-0001
fixes #2962
2023-01-10 08:58:38 +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
06c3513bc0
add Allow header to resource's default 405 handler ( #2949 )
2022-12-21 20:28:45 +00:00
Rob Ede
29bd6a1dd5
fix version requirement for futures_util
2022-12-18 01:34:48 +00:00
Rob Ede
17f7cd2aae
bump zstd to 0.12
2022-12-18 01:31:06 +00:00
Rob Ede
ede645ee4e
bump criterion to 0.4
2022-12-18 01:11:04 +00:00
Rob Ede
6d48593a60
fix doc tests
2022-11-25 23:28:31 +00:00
Rob Ede
3c69d078b2
add redirect service ( #1961 )
2022-11-25 21:44:52 +00:00
Rob Ede
e7c34f2e45
tweak form docs
2022-11-25 21:38:57 +00:00
Rob Ede
d708a4de6d
add acceptable guard ( #2265 )
2022-11-25 21:04:24 +00:00
Rob Ede
a2e2c30d59
use tokio-util deps directly where possible
2022-10-30 19:47:49 +00:00
Rob Ede
f8cb71e789
remove incomplete doc comment
2022-10-14 13:20:38 +02:00
Benny Nazimov
ad7e67f940
add `middleware::logger::custom_response_replace` ( #2631 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-26 18:44:51 +00:00
Rob Ede
1519ae7772
clarify tokio::main docs
2022-09-26 12:29:57 +01:00
Rob Ede
cc7145d41d
rust 1.64 clippy run ( #2891 )
2022-09-25 20:54:17 +01:00
david-monroe
ef64d6a27c
update derive_more dependency to 0.99.8 ( #2888 )
2022-09-23 12:39:18 +00:00
e-rhodes
4d3689db5e
Remove unnecesary clones in extractor configs ( #2884 )
...
Co-authored-by: erhodes <erik@space-nav.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-20 23:17:58 +00:00
e-rhodes
bd5c0af0a6
Add ability to set default error handlers to the `ErrorHandler` middleware ( #2784 )
...
Co-authored-by: erhodes <erik@space-nav.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-15 13:06:34 +00:00
Rob Ede
909461087c
add `ContentDisposition::attachment` constructor ( #2867 )
2022-09-13 01:19:25 +01:00
Rob Ede
40f7ab38d2
prepare actix-web release 4.2.1
2022-09-12 10:43:03 +01:00
Rob Ede
a9e44bcf07
fix -http version to 3.2.2 ( #2871 )
...
fixes #2869
2022-09-12 10:42:22 +01:00
Rob Ede
7767cf3071
prepare actix-web release 4.2.0
2022-09-11 16:44:46 +01:00
Rob Ede
b59a96d9d7
prepare actix-web-codegen release 4.1.0
2022-09-11 16:42:28 +01:00
Rob Ede
386258c285
clarify worker_max_blocking_threads default
2022-09-06 10:13:10 +01:00
Rob Ede
679f61cf37
bump msrv to 1.59
2022-08-27 13:14:16 +01:00
Rob Ede
056de320f0
fix scope doc example
...
fixes #2843
2022-08-25 03:17:48 +01:00
Rob Ede
ea764b1d57
add feature annotations to docs
2022-07-31 23:40:09 +01:00