1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00
Commit Graph

30 Commits

Author SHA1 Message Date
Rob Ede
e0e4d1e661
chore: move deny lints to manifests 2024-07-07 03:54:00 +01:00
Rob Ede
4c4c279938
docs(test): intrgrate cargo-rdme 2024-06-10 23:23:38 +01:00
Matt Palmer
758ae1dac1
actix-test: allow the configuration of the TestServer address (#3351)
* actix-test: allow the configuration of the TestServer address

This is useful if you're running (say) Selenium tests against a running TestServer, and the Selenium workers are Docker containers elsewhere in the network.
Not a *particularly* common use case, perhaps, but one that I can attest happens every now and then.

* Update CHANGES.md

* Adjust default listen address to avoid test failures

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-06-09 19:07:08 +00:00
Rob Ede
cff958e518
chore: address clippy lint 2024-06-07 16:10:25 +01:00
Matt Palmer
8b4d23a69a
Allow disabling redirect following in actix-test (#3356)
If you're testing that redirects are being properly generated, then it's
useful to not have the client go off on a wild goose chase of its own.

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-06-07 14:40:55 +00:00
asonix
2e63ff5928
actix-web: Add rustls 0.23 (#3363)
* Fix type confusion in some scenarios

When the feature for rustls 0.22 is enabled, and rustls 0.23 is also
present in a project, there suddently exist multiple paths for errors
when building middleware chains due to the use of two consecutive `?`
operators without specifying the intermediate error type.

This commit addresses the issue by removing the first `?`, so that the
first error type will always be known, and the second `?` always has a
well defined implementation.

* Add CHANGES entry about type confusion

* actix-http: add rustls 0.23 support

* actix-http: update ws example, tests for rustls 0.23

* actix-http: add rustls 0.23 to changelog

* Update comments to mention 0.23 instead of 0.22

* awc: add rustls 0.23 support

This also fixes certificate lookup when native-roots is enabled for rustls 0.22.

* awc: update changelog for rustls 0.23

* awc: Add base rustls-0_23 feature without roots to better enable custom config

* actix-test: add rustls-0.23

* actix-test: add rustls 0.23 to changelog

* awc: update changelog with rustls 0.23 tweaks

* actix-web: add rustls 0.23

* Add rustls-0_23 to CI

* Update tls_rustls.rs

* review nits

* review nits part 2

* fix doc test

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-05-18 19:05:58 +00:00
Matt Palmer
0a2788d662
actix-test: re-export types from awc (#3349)
This allows us to pass these types around in functions, without having
to add `awc` as a direct (dev-)dependency.

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-05-18 18:57:35 +00:00
Rob Ede
2125aca2c5
Rustls v0.22 support (#3275) 2024-02-03 23:55:01 +00:00
Rob Ede
905c30af86
Actix Web Rustls v0.21 support (#3116) 2023-08-29 01:11:11 +01:00
Rob Ede
4272510261
doc amendments 2023-07-19 19:27:20 +01:00
Kristian Gaylord
908fb2606e
allow configuring number of test server workers (#3069)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-07-19 16:48:43 +00:00
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
Kristian Gaylord
fbfff3e751
actix-test: allow dynamic port setting (#2960)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-02-26 05:25:36 +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
11bfa84926
rename simple_service to status_service (#2659) 2022-02-22 07:06:36 +00:00
Rob Ede
3200de3f34
fix request head timeout (#2611) 2022-01-31 17:30:34 +00:00
Rob Ede
fb036264cc
only build SslConnectorBuilder once (#2503) 2021-12-18 16:44:30 +00:00
Rob Ede
156cc20ac8
refactor testing utils (#2518) 2021-12-15 01:44:51 +00:00
Rob Ede
07f2fe385b
standardize crate level lints 2021-12-08 06:09:56 +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
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
a2f59c02f7
bump actix-server to beta 9 (#2442) 2021-11-15 04:03:33 +00:00
Rob Ede
591abc37c3
add test runtime macro (#2409) 2021-10-19 17:30:32 +01:00
Rob Ede
532f7b9923
refined error model (#2253) 2021-06-17 17:57:58 +01:00
Rob Ede
ddaf8c3e43
add associated error type to MessageBody (#2183) 2021-05-05 18:36:02 +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