Rob Ede
ca69b6577e
use iota for more content-length insertions ( #2050 )
2021-03-07 19:29:02 +00:00
fakeshadow
880b863f95
fix h1 client for handling expect header request ( #2049 )
2021-03-07 18:33:16 +00:00
fakeshadow
badae2f8fd
add local_address bind for client builder ( #2024 )
2021-02-27 22:31:14 +00:00
fakeshadow
aacec30ad1
reduce duplicate code ( #2020 )
2021-02-22 11:15:12 +00:00
fakeshadow
946cccaa1a
refactor awc::ClientBuilder ( #2008 )
2021-02-18 12:30:09 +00:00
fakeshadow
1838d9cd0f
remove unused method. reduce leaf future type ( #2009 )
2021-02-18 11:24:10 +00:00
fakeshadow
117025a96b
simplify client::connection::Connection trait ( #1998 )
2021-02-16 14:10:22 +00:00
Rob Ede
17b3e7e225
pool doc nits ( #1999 )
2021-02-16 09:08:30 +00:00
fakeshadow
c065729468
rework client connection pool ( #1994 )
2021-02-16 08:27:14 +00:00
Rob Ede
0404b78b54
improve body size docs
2021-02-15 11:24:46 +00:00
Rob Ede
77efc09362
hide httpmessage mod
2021-02-11 22:58:40 +00:00
Rob Ede
949d14ae2b
clean up header map ( #1964 )
2021-02-09 22:59:17 +00:00
fakeshadow
519d7f2b8a
add trust-dns optional feature for actix-http and awc ( #1969 )
2021-02-09 10:41:20 +00:00
fakeshadow
830fb2cdb2
properly drop h2 connection ( #1926 )
2021-02-07 03:51:36 +00:00
fakeshadow
41bc04b1c4
Use immutable reference of service state. Update awc dns resolver. ( #1905 )
2021-02-07 01:00:40 +00:00
Rob Ede
0a506bf2e9
cleanup top level doc comments
2021-01-15 05:38:50 +00:00
Rob Ede
b1dd8d28bc
response header rework ( #1869 )
2021-01-15 02:11:10 +00:00
Rob Ede
2d4a174420
fmt
2021-01-04 01:01:35 +00:00
Rob Ede
21f6c9d7a5
improve code readability
2021-01-04 00:49:02 +00:00
fakeshadow
32de9f8840
Tokio 1.0 ( #1813 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-01-03 23:47:04 +00:00
fakeshadow
95ccf1c9bc
replace actix_utils::oneshot with futures_channle::oneshot ( #1844 )
2020-12-21 16:42:20 +00:00
Rob Ede
7787638f26
fix CI clippy warnings ( #1664 )
2020-09-10 14:46:35 +01:00
Rob Ede
8497b5f490
integrate with updated actix-{codec, utils} ( #1634 )
2020-08-24 10:13:35 +01:00
fakeshadow
160995b8d4
fix awc pool leak ( #1626 )
2020-08-09 21:49:43 +01:00
Yuki Okushi
92b5bcd13f
Check format and tweak CI config ( #1619 )
2020-07-22 00:28:33 +01:00
Rob Ede
0ec335a39c
bump MSRV to 1.42 ( #1616 )
2020-07-21 16:40:30 +09:00
Patrick Tescher
e10eb648d9
Fix leaks with actix_http's client ( #1580 )
2020-07-10 22:35:22 +01:00
Taiki Endo
6c5c4ea230
Remove uses of pin_project::project attribute
...
pin-project will deprecate the project attribute due to some unfixable
limitations.
Refs: https://github.com/taiki-e/pin-project/issues/225
2020-06-06 06:44:14 +09:00
Stephen Stack
621ebec01a
Fix typo in timeout error display ( #1552 )
2020-06-02 18:04:49 +01:00
Yuki Okushi
292af145cb
http: Minimize futures
dependencies
2020-05-19 08:29:11 +09:00
Rob Ede
7e8ea44d5c
remove needless BodySize::Sized64 variant
2020-05-18 00:42:51 +01:00
Rob Ede
9d94fb91b2
correct spelling of ConnectError::Unresolved ( #1487 )
...
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-08 02:26:48 +09:00
Otavio Salvador
146ae4da18
Implement std::error::Error
for our custom errors
...
For allowing a more ergonomic use and better integration on the
ecosystem, this adds the `std::error::Error` `impl` for our custom
errors.
We intent to drop this hand made code once `derive_more` finishes the
addition of the Error derive support[1]. Until that is available, we
need to live with that.
1. https://github.com/JelteF/derive_more/issues/92
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-03-18 00:22:18 -03:00
Yuki Okushi
0d5646a8b6
Run rustfmt
2020-03-08 00:52:39 +09:00
Maxim Vorobjov
10e3e72595
Http2 client configuration to improve performance ( #1394 )
...
* add defaults for http2 client configuration
* fix spaces
* Add changes text for extended H2 defaults buffers
* client: configurable H2 window sizes and max_http_version
* add H2 window size configuration and max_http_version to awc::ClientBuilder
* add awc::ClientBuilder H2 window sizes and max_http_version
* add test for H2 window size settings
* cleanup comment
* Apply code review fixes
* Code review fix for awc ClientBuilder
* Remove unnecessary comments on code review
* pin quote version to resolve build issue
* max_http_version to accept http::Version
* revert fix for quote broken build
2020-03-07 11:09:31 +09:00
Yuki Okushi
7ba14fd113
Run rustfmt
2020-02-27 11:10:55 +09:00
Maksym Vorobiov
9d04b250f9
This is a squashed commit:
...
- Convert MessageBody to accept Pin in poll_next
- add CHANGES and increase versions aligned to semver
- update crates to accomodate MessageBody Pin change
- fix tests and dependencies
2020-02-27 09:37:05 +09:00
Aaron Hill
e6811e8818
Use #[pin_project] with ConnectorPoolSupport
...
This removes a use of `Pin::get_unchecked_mut`
2020-02-19 21:42:53 -05:00
Aaron Hill
74dcc7366d
Remove several uses of Pin::new_unchecked
( #1294 )
...
Most of the relevant struct already had a `#[pin_project]` attribute,
but it wasn't being used.
The remaining uses of `Pin::new_unchecked` all involve going from a
`&mut T` to a `Pin<&mut T>`, without directly observing a `Pin<&mut T>`
first. As such, they cannot be replaced by `pin_project`
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-28 12:35:51 +09:00
Nikolay Kim
c1deaaeb2f
cleanup imports
2019-12-13 11:24:57 +06:00
Nikolay Kim
6c9f9fff73
clippy warnings
2019-12-08 00:46:51 +06:00
Nikolay Kim
0ba125444a
Add impl ResponseBuilder for Error
2019-12-07 21:41:34 +06:00
daxpedda
4921243add
Fix rustls build. ( #1195 )
2019-12-07 16:14:09 +06:00
Nikolay Kim
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00
Nikolay Kim
b45c6cd66b
replace hashbrown with std hashmap
2019-12-04 18:33:43 +06:00
Nikolay Kim
14075ebf7f
use released versions of actix-net
2019-12-02 23:33:39 +06:00
Nikolay Kim
f73f97353b
refactor ResponseError trait
2019-11-26 16:07:39 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
d081e57316
fix h2 client send body
2019-11-21 16:02:17 +06:00
Nikolay Kim
1ffa7d18d3
drop unpin constraint
2019-11-21 16:02:17 +06:00