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
Nikolay Kim
5a25fd95f5
Fix panic on invalid URL characters #130
2018-03-22 18:08:12 -07:00
Nikolay Kim
b942bcc4a6
Fix long client urls #129
2018-03-22 07:44:16 -07:00
Nikolay Kim
93d99b5a49
Use more ergonomic actix_web::Error instead of http::Error for ClientRequestBuilder::body()
2018-03-21 20:19:31 -07:00
Nikolay Kim
afb81b6b8f
add convinience ClientRequest::build_from() from HttpRequest
2018-03-21 19:54:21 -07:00
Nikolay Kim
4866a26578
make streaming method more ergonomic
2018-03-21 19:14:18 -07:00
Nikolay Kim
2d75ced4ed
fix client connection pooling
2018-03-21 11:51:08 -07:00
Nikolay Kim
8198f5e10a
Refactor TestServer configuration
2018-03-20 11:23:35 -07:00
Nikolay Kim
6cd40df387
Fix server websockets big payloads support
2018-03-19 17:27:03 -07:00
Nikolay Kim
f4a47ef71e
allow set client request/ws timeout
2018-03-18 19:27:51 -07:00
Nikolay Kim
6d792d9948
simplify h1 parse
2018-03-16 20:56:23 -07:00
Nikolay Kim
2d18dba40a
fix compilation
2018-03-16 12:28:08 -07:00
Nikolay Kim
84bf282c17
add basic client connection pooling
2018-03-16 12:04:01 -07:00
Nikolay Kim
0f064db31d
Move brotli encoding to a feature
2018-03-13 17:21:22 -07:00
Nikolay Kim
fd0bb54469
add debug formatter for ClientRequestBuilder
2018-03-13 15:09:05 -07:00
Glade Miller
38080f67b3
If no path is available from the URI request /
2018-03-13 13:35:11 -06:00
Glade Miller
08504e0892
Move path call inline into write
2018-03-13 13:26:13 -06:00
Glade Miller
401c0ad809
https://github.com/actix/actix-web/issues/120 - Send Query Parameters in client requests
2018-03-13 13:17:55 -06:00
Nikolay Kim
caaace82e3
export symbols
2018-03-09 13:03:15 -08:00
Nikolay Kim
b56be8e571
write buffer capacity for client
2018-03-09 10:09:13 -08:00
Nikolay Kim
f8b8fe3865
add space to cookie header
2018-03-09 05:38:07 -08:00
Nikolay Kim
ebdc983dfe
optimize websocket stream
2018-03-08 17:19:50 -08:00
Nikolay Kim
395243a539
another attempt to fix cookie handling
2018-03-08 11:16:54 -08:00
Nikolay Kim
1ab676d7eb
bump version and add some tests
2018-03-07 22:40:46 -08:00
Nikolay Kim
1db1ce1ca3
one more cookie handling fix
2018-03-07 15:41:46 -08:00
Nikolay Kim
c26d9545a5
map connector timeout error
2018-03-07 12:09:53 -08:00
Alex Whitney
9afad5885b
fix client cookie handling
2018-03-07 09:48:34 +00:00
Nikolay Kim
c1419413aa
Fix client cookie support
2018-03-06 22:36:34 -08:00
Nikolay Kim
acd33cccbb
add tls
2018-03-06 17:34:46 -08:00
Nikolay Kim
57a1d68f89
add client response timeout
2018-03-06 17:04:48 -08:00
Nikolay Kim
6a3c5c4ce0
Merge branch 'master' into feature/allow_connection_timeout_to_be_set
2018-03-06 15:18:25 -08:00
Nikolay Kim
14a511bdad
use IntoHeaderValue and Header for client request
2018-03-06 15:18:04 -08:00
Glade Miller
6b9e51740b
Merge branch 'master' into feature/allow_connection_timeout_to_be_set
2018-03-06 15:28:31 -07:00
Glade Miller
be7e8d159b
Allow connection timeout to be set
2018-03-06 15:26:09 -07:00
Nikolay Kim
a0e6313d56
Fix compression #103 and #104
2018-03-06 11:02:03 -08:00
Nikolay Kim
b282ec106e
Add ResponseError impl for SendRequestError
2018-03-05 13:02:31 -08:00
Nikolay Kim
2ccbd5fa18
fix socket polling
2018-03-03 12:17:26 -08:00
Nikolay Kim
16c05f07ba
make HttpRequest::match_info_mut() public
2018-03-02 20:40:08 -08:00
Nikolay Kim
feba5aeffd
bump version
2018-03-02 14:31:23 -08:00
Nikolay Kim
206c4e581a
rename httpcodes
2018-03-01 19:12:59 -08:00
Nikolay Kim
7591592279
fix handle big data chunkd for parsing
2018-02-27 23:04:57 -08:00
Nikolay Kim
e2c8f17c2c
drop connection if handler get dropped without consuming payload
2018-02-27 16:08:57 -08:00
Nikolay Kim
1f063e4136
move with_connector method to ClientRequestBuilder
2018-02-27 15:14:33 -08:00
Nikolay Kim
a7bf635158
unify headers and body processing for client response and server request
2018-02-27 15:03:28 -08:00
Nikolay Kim
abae65a49e
remove unused code
2018-02-26 16:11:00 -08:00
Nikolay Kim
d6fd4a3524
use buffer capacity; remove unused imports
2018-02-26 15:34:25 -08:00
Nikolay Kim
72aa2d9eae
clippy warnings
2018-02-26 14:33:56 -08:00
Nikolay Kim
644f1a9518
refactor ws frame parser
2018-02-26 13:58:23 -08:00
Nikolay Kim
ab5ed27bf1
refactor and simplify content encoding
2018-02-25 11:43:00 +03:00
Nikolay Kim
4e41e13baf
refactor client payload processing
2018-02-25 11:18:17 +03:00
Nikolay Kim
4a9c1ae894
allow to use Connection for sending client request
2018-02-21 22:53:23 -08:00
Nikolay Kim
2374aa42ed
set date header for client requests
2018-02-19 23:18:18 -08:00
Nikolay Kim
03912d2089
support client request's async body
2018-02-19 22:48:27 -08:00
Nikolay Kim
f2f1798215
allow to send request using custom connector
2018-02-19 13:41:21 -08:00
Nikolay Kim
548f4e4d62
replace reqwest with actix::client
2018-02-19 13:18:18 -08:00
Nikolay Kim
cb70d5ec3d
refactor http client
2018-02-19 03:11:11 -08:00
Nikolay Kim
8f9ec5c23c
fix doc test
2018-02-13 07:50:49 -08:00
Nikolay Kim
b1eec3131f
use newer api
2018-02-12 22:56:47 -08:00
Nikolay Kim
80285f2a32
fix doc test
2018-02-12 18:38:13 -08:00
Nikolay Kim
335ca8ff33
use new actix api
2018-02-12 16:08:04 -08:00
Nikolay Kim
8c1b5fa945
sync with latest actix
2018-02-12 12:17:30 -08:00
Nikolay Kim
78da98a16d
add wsload tool; optimize ws frame parser
2018-02-09 17:20:28 -08:00
Nikolay Kim
73ed1342eb
more actix compatibility
2018-02-08 17:13:56 -08:00
Nikolay Kim
eb713bd60e
update actix version
2018-02-01 01:08:08 -08:00
Alexander Andreev
a565e71018
spelling check
2018-01-31 20:28:53 +03:00
Nikolay Kim
76f9542df7
rename module
2018-01-30 13:04:52 -08:00
Nikolay Kim
9739168d48
fix limit usage for Request/Response Body future
2018-01-30 12:44:14 -08:00
Nikolay Kim
5cbaf3a1b8
add client ssl support
2018-01-30 11:17:17 -08:00
Nikolay Kim
a02e0dfab6
initial work on client connector
2018-01-29 23:01:20 -08:00
Nikolay Kim
5cc3bba5cc
change ws client names
2018-01-29 15:45:37 -08:00
Nikolay Kim
b686f39d0b
complete impl for client request and response
2018-01-29 14:44:25 -08:00
Nikolay Kim
6416a796c3
add ClientRequest and ClientRequestBuilder
2018-01-29 11:45:33 -08:00
Nikolay Kim
5dd2e7523d
basic websocket client
2018-01-27 22:03:03 -08:00