Commit Graph

184 Commits

Author SHA1 Message Date
Joel Wurtz bf1f169be2
[awc] change `client::Connect` to be public (#2690) 2023-02-09 09:32:04 +00:00
citreae535 b00fe72cf6
Update base64 to 0.21 (#2966)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-01-21 01:36:08 +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 29bd6a1dd5
fix version requirement for futures_util 2022-12-18 01:34:48 +00:00
Rob Ede cc7145d41d
rust 1.64 clippy run (#2891) 2022-09-25 20:54:17 +01:00
liushuyu c9f91796df
awc: correctly handle redirections that begins with `//` (#2840) 2022-08-25 03:12:58 +01:00
cui fliter 6a5b370206
fix some typos (#2744)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-04-24 22:01:20 +00:00
Rob Ede 8ddb24b49b
prepare awc release 3.0.0 (#2684) 2022-03-08 16:51:40 +00:00
Rob Ede 8c2fad3164
align hello-world examples 2022-03-05 23:15:33 +00:00
Rob Ede 218e34ee17
fix http error debug impl 2022-02-22 07:07:12 +00:00
Rob Ede ff4b2d251f
fix impl assertions 2022-02-08 14:32:57 +00:00
Rob Ede 98faa61afe
fix impl assertions 2022-02-08 13:37:01 +00:00
Rob Ede 3d621677a5
clippy 2022-02-08 08:00:47 +00:00
Rob Ede 3200de3f34
fix request head timeout (#2611) 2022-01-31 17:30:34 +00:00
Rob Ede 50894e392e
document new body map types 2022-01-23 23:26:35 +00:00
Rob Ede bc89f0bfc2
s/example/examples 2022-01-21 16:56:33 +00:00
Rob Ede 1bc1538118
use tokio::main in client example 2022-01-19 21:36:14 +00:00
Rob Ede ad159f5219
fix ClientResponse::body doc
fixes #2589
2022-01-19 15:52:16 +00:00
Rob Ede 2ffc21dd4f
move response extensions out of head (#2585) 2022-01-19 02:09:25 +00:00
Rob Ede 96a4dc9dec
use modern signatures for awc `send_*` and `header` methods (#2553) 2021-12-28 03:22:22 +00:00
Rob Ede 2308f8afa4
use const header values where possible 2021-12-27 16:15:33 +00:00
Rob Ede 01cbfc5724
reduce -http re-exports in awc 2021-12-25 02:34:35 +00:00
Rob Ede 3756dfc2ce
move client to own module 2021-12-25 02:34:31 +00:00
Rob Ede d2590fd46c
`ClientRequest::send_body` takes `impl MessageBody` (#2546) 2021-12-25 02:33:37 +00:00
Rob Ede 1296e07c48
relax unpin bounds on payload types (#2545) 2021-12-24 17:47:47 +00:00
Rob Ede fb036264cc
only build `SslConnectorBuilder` once (#2503) 2021-12-18 16:44:30 +00:00
Ali MJ Al-Nasrawy 3c0d059d92
MessageBody::boxed (#2520)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-12-17 00:43:40 +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 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 c4b20df56a
convert all remaining IETF RFC links to new format 2021-12-02 03:45:04 +00:00
Rob Ede 0df275c478
update all IETF RFC links to new URL format 2021-12-01 19:42:02 +00:00
Rob Ede e045418038
prepare for actix-tls rc.1 (#2474) 2021-11-30 14:12:04 +00:00
Rob Ede a978b417f3
use actix ready future in remaining return types 2021-11-30 13:11:41 +00:00
Rob Ede bcbbc115aa
fix awc changelog 2021-11-23 15:12:55 +00:00
fakeshadow e7987e7429
awc: support http2 over plain tcp with feature flag (#2439)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-11-22 18:16:56 +00:00
Rob Ede 668a33c793
remove internal usage of Body 2021-11-16 22:10:30 +00:00
Rob Ede d8cbb879dd
make `AnyBody` generic on `Body` type (#2448) 2021-11-16 21:41:35 +00:00
Rob Ede 4df1cd78b7
simplify `AnyBody` and `BodySize` (#2446) 2021-11-16 09:21:10 +00:00
Rob Ede a2f59c02f7
bump actix-server to beta 9 (#2442) 2021-11-15 04:03:33 +00:00
fakeshadow 5e554dca35
fix awc clippy warning (#2431) 2021-11-04 15:57:55 +00:00
fakeshadow d13854505f
move actix_http::client module to awc (#2425) 2021-10-26 00:37:40 +01:00
Omid Rad 53ec66caf4
Send headers within the redirect requests. (#2310) 2021-09-01 20:16:41 +01:00
Igor Aleksanov 262c6bc828
Various refactorings (#2281)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-06-26 15:33:43 +01:00
Rob Ede 93aa86e30b
clippy 2021-06-24 15:11:01 +01:00
Rob Ede 73a655544e
tweak compress feature docs 2021-06-19 20:23:06 +01:00
Arthur Le Moigne baa5a663c4
Select compression algorithm using features flags (#2250)
Add compress-* feature flags in actix-http / actix-web / awc.
This allow enable / disable not wanted compression algorithm.
2021-06-19 20:21:13 +01:00
Rob Ede 532f7b9923
refined error model (#2253) 2021-06-17 17:57:58 +01:00
Rob Ede 981c54432c
remove json and url encoded form support from -http (#2148) 2021-04-12 10:30:28 +01:00