Rob Ede
79a38e0628
apply standard formatting
2023-07-17 02:38:12 +01:00
Rob Ede
241da6e081
update MSRV to 1.65 ( #3059 )
2023-07-02 01:09:15 +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
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
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
e2fed91efd
format markdown with prettier
2023-02-26 03:26:51 +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
Rob Ede
fa106da555
refactor: move Host guard into own module
2023-01-30 11:36:12 -05: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
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
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
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
386258c285
clarify worker_max_blocking_threads default
2022-09-06 10:13:10 +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
Rob Ede
19aa14a9d6
re-order HttpServer methods for better docs
2022-07-31 22:10:51 +01:00
Rob Ede
10746fb2fb
improve HttpServer docs
2022-07-31 21:58:15 +01:00
Rob Ede
6408291ab0
appease clippy by deriving Eq on a bunch of items ( #2818 )
2022-07-23 16:26:48 +01:00
Rob Ede
8d260e599f
clippy
2022-07-23 02:48:28 +01:00
Rob Ede
6485434a33
update bump script
2022-07-22 20:19:15 +01:00
Rob Ede
16c7c16463
reduce scope of once_cell change
2022-07-22 20:19:02 +01:00
Expyron
9b0fdca6e9
Remove some unnecessary uses of once_cell::sync::Lazy
( #2816 )
2022-07-22 20:18:38 +01:00
Roland Fredenhagen
8759d79b03
routes
macro allowing multiple paths per handler (#2718 )
...
* WIP: basic implementation for `routes` macro
* chore: changelog, docs, tests
* error on missing methods
* Apply suggestions from code review
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
* update test stderr expectation
* add additional tests
* fix stderr output
* remove useless ResourceType
this is dead code from back when .to and .to_async were different ways to add a service
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-07-04 04:31:49 +00:00
Rob Ede
06c7945801
retain previously set vary headers when using compress ( #2798 )
...
* retain previously set vary headers when using compress
2022-06-30 09:19:16 +01:00
Ulf Lilleengen
0dba6310c6
Expose option for setting TLS handshake timeout ( #2752 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-06-27 02:57:21 +00:00
Rob Ede
f7d7d92984
address clippy lints
2022-06-27 03:12:36 +01:00
PeterPierinakos
8dbf7da89f
Fix common grammar mistakes and add small documentation for AppConfig's Default implementation ( #2793 )
2022-06-25 14:01:06 +00:00
e-rhodes
5d0e8138ee
Add getters for &ServiceRequest
( #2786 )
2022-06-22 21:02:03 +01:00
Sabrina Jewson
dce57a79c9
Implement ResponseError
for Infallible
( #2769 )
2022-05-30 20:52:48 +01:00