Robert G. Jakabosky
3ccbce6bc8
Fix issue with 'Connection: close' in ClientRequest
2018-09-01 00:08:53 +08:00
Markus Unterwaditzer
4bab50c861
Add ability to pass a custom TlsConnector ( #491 )
2018-08-29 20:53:31 +02:00
Robert G. Jakabosky
c3ae9997fc
Fix bug with http1 client disconnects.
2018-08-26 22:21:05 +08:00
Nikolay Kim
8dfc34e785
fix tokio-tls IoStream impl
2018-08-23 10:27:32 -07:00
Nikolay Kim
810995ade0
fix tokio-tls dependency #480
2018-08-23 10:10:13 -07:00
Nikolay Kim
1716380f08
clippy fmt
2018-08-23 09:48:01 -07:00
Kornel
bdc9a8bb07
Optionally support tokio-uds's UnixStream as IoStream ( #472 )
2018-08-17 19:04:15 +03:00
Douman
9c80d3aa77
Write non-80 port in HOST of client's request ( #451 )
2018-08-07 10:01:29 +03:00
Jan Michael Auer
e61ef7dee4
Use zlib instead of deflate for content encoding ( #442 )
2018-08-03 14:56:26 +02:00
Nikolay Kim
0da3fdcb09
do not use Arc for rustls config
2018-08-01 10:59:00 -07:00
Nikolay Kim
4dba531bf9
do not override HOST header for client request #428
2018-07-31 08:51:24 -07:00
Nikolay Kim
2072c933ba
handle error during request creation
2018-07-30 15:04:52 -07:00
Marat Safin
196da6d570
add rustls
2018-07-30 08:21:12 +03:00
Nikolay Kim
b878613e10
fix warning
2018-07-24 15:49:46 -07:00
Nikolay Kim
85b275bb2b
fix warnings
2018-07-24 15:09:30 -07:00
Nikolay Kim
2043bb5ece
do not reallocate waiters
2018-07-20 10:20:41 -07:00
Nikolay Kim
85672d1379
fix client connector wait queue
2018-07-18 01:23:56 +06:00
Nikolay Kim
373f2e5028
add release stat
2018-07-17 17:38:16 +06:00
Nikolay Kim
d43902ee7c
proper handling for client connection release
2018-07-17 17:23:03 +06:00
Nikolay Kim
1af5aa3a3e
calculate client request timeout
2018-07-17 02:30:21 +06:00
Nikolay Kim
bccd7c7671
add wait queue size stat to client connector
2018-07-17 01:57:57 +06:00
kingoflolz
d9988f3ab6
fix missing content length
...
fix missing content length when no compression is used
2018-07-11 21:21:32 +10:00
Nikolay Kim
cfa470db50
close conneciton for head requests
2018-07-06 09:21:24 +06:00
Nikolay Kim
a5f7a67b4d
clippy warnings
2018-07-06 08:24:44 +06:00
Nikolay Kim
9070d59ea8
do not read head payload
2018-07-06 08:11:36 +06:00
Douman
67e4cad281
Introduce method to set header if it is missing only ( #364 )
...
Also let default headers use it.
Closes #320
2018-07-05 19:27:18 +03:00
Nikolay Kim
8058d15624
clippy warnings
2018-07-05 13:16:16 +06:00
Nikolay Kim
6fd686ef98
cleanup warnings
2018-07-04 21:01:27 +06:00
Nikolay Kim
fec6047ddc
refactor HttpRequest mutability
2018-07-02 23:35:32 +06:00
Nikolay Kim
c0cdc39ba9
do not store cookies on client response
2018-06-24 22:21:04 +06:00
Nikolay Kim
8e8a68f90b
add empty output stream
2018-06-24 22:05:44 +06:00
Nikolay Kim
33260c7b35
split encoding module
2018-06-24 10:42:20 +06:00
Nikolay Kim
40ca9ba9c5
simplify write buffer
2018-06-24 10:30:58 +06:00
Nikolay Kim
45682c04a8
refactor content encoder
2018-06-24 08:54:01 +06:00
Nikolay Kim
348491b18c
fix alpn connector
2018-06-23 17:59:45 +06:00
Nikolay Kim
cf38183dcb
refactor client connector waiters maintenance
2018-06-23 12:40:21 +06:00
Nikolay Kim
e3dc6f0ca8
refactor h1decoder
2018-06-23 12:28:55 +06:00
Nikolay Kim
fc7238baee
refactor read_from_io
2018-06-22 11:30:40 +06:00
Nikolay Kim
edd22bb279
refactor read_from_io
2018-06-22 09:01:20 +06:00
Nikolay Kim
58d1f4a4aa
switch to actix master
2018-06-21 13:34:36 +06:00
Nikolay Kim
1be27e17f8
convert timer error to io error
2018-06-21 10:05:20 +06:00
Nikolay Kim
8b0fbb85d1
SendRequest execution fails with the entered unreachable code #329
2018-06-21 09:52:18 +06:00
Nikolay Kim
cafde76361
Merge branch 'master' into remove-use-of-unsafe-from-pipeline-poll
2018-06-19 19:20:25 +06:00
Nikolay Kim
bfb93cae66
Update connector.rs
2018-06-19 19:19:31 +06:00
Konrad Borowski
877e177b60
Remove use of unsafe from Pipeline#poll
2018-06-19 13:42:44 +02:00
Nikolay Kim
5c42b0902f
better doc api examples
2018-06-19 12:07:07 +06:00
Nikolay Kim
247e8727cb
ClientBody is not needed
2018-06-19 10:15:16 +06:00
Nikolay Kim
362b14c2f7
remove unsafe cell from ws client
2018-06-19 09:36:17 +06:00
Nikolay Kim
70244c29e0
update doc api examples
2018-06-17 04:09:07 +06:00
Ozgur Akkurt
d4d3add17d
add ClientRequestBuilder::form()
2018-06-12 19:30:00 +03:00
Nikolay Kim
9dd66dfc22
better name for error
2018-06-10 10:24:34 -07:00
Nikolay Kim
87a822e093
fix deprecated warnings
2018-06-10 10:14:13 -07:00
Nikolay Kim
818d0bc187
new StreamHandler impl
2018-06-09 07:53:46 -07:00
Nikolay Kim
9151d61eda
allow to use custom resolver for ClientConnector
2018-06-08 16:33:57 -07:00
François Mockers
ca3fb11f8b
add actix-web version in header
2018-06-04 08:15:04 +02:00
François Mockers
86be54df71
add default value for header User-Agent in requests
2018-06-03 15:48:00 +02:00
Pascal Hertleif
890a7e70d6
Add missing API docs
...
These were written without much knowledge of the actix-web internals!
Please review carefully!
2018-06-02 15:52:50 +02:00
Nikolay Kim
8452c7a044
fix doc api example
2018-06-01 11:22:40 -07:00
Nikolay Kim
3f5a39a5b7
cargo fmt
2018-06-01 09:37:14 -07:00
Nikolay Kim
154cd3c5de
better actix mod re-exports
2018-06-01 09:36:16 -07:00
Douman
80965d7a9a
Re-export actix dependency. Closes #260 ( #264 )
...
- Re-export actix's prelude into actix namespace
- Removing implicit dependency on root's actix module
2018-05-31 20:43:14 +03:00
Nikolay Kim
77becb9bc0
fix doc string
2018-05-29 18:48:39 -07:00
Nikolay Kim
dde266b9ef
fix doc string
2018-05-29 18:31:39 -07:00
Nikolay Kim
a64205e502
refactor TransferEncoding; allow to use client api with threaded tokio runtime
2018-05-29 16:32:39 -07:00
Nikolay Kim
ecd05662c0
use new actix system api
2018-05-29 10:31:37 -07:00
Nikolay Kim
fb582a6bca
fix connector
2018-05-27 05:18:37 -07:00
Nikolay Kim
be2ceb7c66
update actix Addr; make ClientConnector thread safe
2018-05-27 05:02:49 -07:00
Nikolay Kim
255cd4917d
fix doc test
2018-05-24 22:04:14 -07:00
Nikolay Kim
690169db89
migrate to tokio
2018-05-24 21:03:16 -07:00
Nikolay Kim
45e9aaa462
rustfmt 0.7
2018-05-17 12:20:20 -07:00
Nikolay Kim
92f993e054
Fix client request timeout handling
2018-05-10 09:37:38 -07:00
Nikolay Kim
b3cc43bb9b
Fix connector's default keep-alive and lifetime settings #212
2018-05-08 13:41:04 -07:00
Nikolay Kim
ecda97aadd
update doc string
2018-05-08 05:54:06 -07:00
Nikolay Kim
c72d1381a6
clippy warnings
2018-04-29 09:09:08 -07:00
Nikolay Kim
de49796fd1
clippy warnings; fmt
2018-04-28 22:55:47 -07:00
Nikolay Kim
a38c3985f6
refactor http1 parser
2018-04-28 22:20:32 -07:00
Nikolay Kim
5ca904d1db
make flate crate optional
2018-04-24 12:24:04 -07:00
Nikolay Kim
79818560b2
cleanup doc strings; prepare release
2018-04-16 09:30:59 -07:00
Nikolay Kim
58cc0dfbc5
Fix Client Request with custom Body Stream halting on certain size requests #176
2018-04-15 10:22:09 -07:00
Nikolay Kim
113f5ad1a8
add rustfmt config
2018-04-13 16:02:01 -07:00
Nikolay Kim
0b01884fca
add timeouts stats to client connector
2018-04-12 13:08:13 -07:00
Jan Niehusmann
72bc1546c4
fix end-of-stream handling in parse_payload
...
parse_payload can be called with a pre-filled buf.
In this case, it's totaly fine for read_from_io to return
sync::Ready(0) while buf is not empty. This is not an
PayloadError::Incomplete.
So, move the check for PayloadError::Incomplete down to the
decoding code: If the decoder is not ready, but the input stream
is finished, PayloadError::Incomplete will be returned.
2018-04-12 09:47:32 +02:00
Nikolay Kim
b517957761
fix stats for tls and alpn features
2018-04-11 16:34:01 -07:00
Nikolay Kim
d18f9c5905
add clinet connector stats
2018-04-11 16:11:11 -07:00
Nikolay Kim
bb11fb3d24
update client mod doc string
2018-04-09 21:57:40 -07:00
Nikolay Kim
e757dc5a71
clippy warnings
2018-04-09 14:25:30 -07:00
Vincent Ambo
38063b9873
docs(client): Minor formatting and spelling fixes in module docs
2018-04-07 17:00:57 +02:00
Nikolay Kim
542315ce7f
simplify StaticFiles
2018-04-06 19:34:55 -07:00
Nikolay Kim
2d4ee0ee01
make Pause::new public
2018-04-06 12:34:24 -07:00
Nikolay Kim
5bd5f67d79
add Pause message constructors
2018-04-06 12:31:31 -07:00
Nikolay Kim
8d5fa6ee71
added Pause/Resume for client connector
2018-04-06 11:08:41 -07:00
Nikolay Kim
af0c8d893d
add shortcut method for client requests
2018-04-06 10:09:31 -07:00
Nikolay Kim
2dafd9c681
do not re-export HttpServer from server module
2018-04-06 08:40:11 -07:00
Nikolay Kim
6c55501252
client connector wait timeout
2018-04-05 18:33:58 -07:00
Nikolay Kim
eeae0ddab4
start client timeout for response only
2018-04-04 20:15:47 -07:00
Nikolay Kim
d8a9606162
add connection limits to pool
2018-04-04 16:39:01 -07:00
Nikolay Kim
44e3df82f6
simplify http response construction; deprecate httpcodes
2018-03-30 23:07:33 -07:00
Nikolay Kim
9e751de707
re-arrange modules and exports
2018-03-30 17:31:18 -07:00
Nikolay Kim
f5636f321b
drop deprecated code
2018-03-29 11:06:44 -07:00
Nikolay Kim
90e3aaaf8a
fix router cannot parse Non-ASCII characters in URL #137
2018-03-28 16:10:58 -07:00