Nikolay Kim
2e19f572ee
add tests for camel case headers rendering
2019-04-24 11:27:57 -07:00
Peter Ding
64f603b076
Support to set header names of ClientRequest
as Camel-Case ( #713 )
...
* Support to set header names of `ClientRequest` as Camel-Case
This is the case for supporting to request for servers which don't
perfectly implement the `RFC 7230`. It is important for an app
which uses `ClientRequest` as core part.
* Add field `upper_camel_case_headers` to `ClientRequest`.
* Add function `set_upper_camel_case_headers` to `ClientRequest`
and `ClientRequestBuilder` to set field `upper_camel_case_headers`.
* Add trait `client::writer::UpperCamelCaseHeader` for
`http::header::HeaderName`, let it can be converted to Camel-Case
then writed to buffer.
* Add test `test_client::test_upper_camel_case_headers`.
* Support upper Camel-Case headers
* [actix-http] Add field `upper_camel_case_headers` for `RequestHead`
* [actix-http] Add code for `MessageType` to support upper camel case
* [awc] Add functions for `ClientRequest` to set upper camel case
* Use `Flags::CAMEL_CASE` for upper camel case of headers
2019-04-24 10:48:49 -07:00
Nikolay Kim
9702b2d88e
add client h2 reuse test
2019-04-23 15:06:30 -07:00
Nikolay Kim
d2b0afd859
Fix http client pool and wait queue management
2019-04-23 14:57:03 -07:00
Nikolay Kim
5f6a1a8249
update version
2019-04-23 09:45:39 -07:00
Nikolay Kim
5d531989e7
Fix BorrowMutError panic in client connector #793
2019-04-23 09:42:19 -07:00
Nikolay Kim
5e4e95fb0a
update create version
2019-04-19 18:13:05 -07:00
Nikolay Kim
9f421b81b8
fix non-ssl connector
2019-04-19 18:10:53 -07:00
Nikolay Kim
fc9b14a933
allow to specify server address for http and ws requests
2019-04-19 18:03:44 -07:00
Nikolay Kim
7292d0b696
drop chrono and use i64 for max age
2019-04-19 17:23:17 -07:00
Kilerd Chan
791f22bbc8
replate time::Duration
with chrono::Duration
and add max_age_time
method ( #789 )
...
* feat: replate time::Duration with chrono::Duration
* feat: rename max_age method which accepts `Duration` to max_age_time and add new max_age method accepting isize of seconds
* feat: replace `time:Duration` with `chrono:Duration` in repo `actix-http`
2019-04-19 13:54:44 -07:00
Nikolay Kim
163ca89cf4
more tests
2019-04-17 17:48:25 -07:00
Nikolay Kim
c943e95812
update dependencies
2019-04-16 11:17:29 -07:00
Nikolay Kim
2986077a28
no need for feature
2019-04-16 10:32:48 -07:00
Nikolay Kim
3744957804
actix_http::encoding always available
2019-04-16 10:27:58 -07:00
Nikolay Kim
eb4f6b74fb
Merge branch 'master' of github.com:actix/actix-web
2019-04-16 09:58:07 -07:00
Nikolay Kim
a116c4c2c7
Expose peer addr via Request::peer_addr() and RequestHead::peer_addr
2019-04-16 09:54:02 -07:00
Travis Harmon
7f674febb1
add 422 to httpcodes.rs ( #782 )
2019-04-15 16:55:06 -07:00
Nikolay Kim
1eebd47072
fix warnings
2019-04-14 21:00:16 -07:00
Nikolay Kim
002c41a7ca
update trust-dns
2019-04-14 20:45:44 -07:00
Nikolay Kim
4f30fa9d46
Remove generic type for request payload, always use default
2019-04-13 14:50:54 -07:00
Nikolay Kim
1f2b15397d
prepare alpha5 release
2019-04-12 14:00:45 -07:00
Nikolay Kim
87167f6581
update actix-connect
2019-04-12 12:33:11 -07:00
Nikolay Kim
94d7a7f873
custom future for SendError service
2019-04-11 15:12:23 -07:00
Nikolay Kim
d86567fbdc
revert SendResponse::Error type
2019-04-11 14:18:58 -07:00
Nikolay Kim
d115b3b3ed
ws verifyciation takes RequestHead; add SendError utility service
2019-04-11 14:00:32 -07:00
Nikolay Kim
e55be4dba6
add FramedRequest helper methods
2019-04-10 19:57:34 -07:00
Nikolay Kim
12e1dad42e
export TestBuffer
2019-04-10 19:43:09 -07:00
Nikolay Kim
9d82d4dfb9
Fix body propagation in Response::from_error. #760
2019-04-10 12:43:31 -07:00
Nikolay Kim
9bb40c249f
add h1::SendResponse future; renamed to MessageBody::size
2019-04-10 12:24:17 -07:00
Nikolay Kim
c22a3a71f2
fix test
2019-04-08 19:07:11 -07:00
Nikolay Kim
9c9940d88d
update readme
2019-04-08 17:53:19 -07:00
Nikolay Kim
561f83d044
add upgrade service support to h1 dispatcher
2019-04-08 17:51:14 -07:00
Nikolay Kim
43d325a139
allow to specify upgrade service
2019-04-08 14:51:16 -07:00
Nikolay Kim
b921abf18f
set host header for http1 connections
2019-04-08 12:48:26 -07:00
Nikolay Kim
bc58dbb2f5
add async expect service test
2019-04-08 11:19:56 -07:00
Nikolay Kim
b1547bbbb6
do not set default headers
2019-04-08 11:09:57 -07:00
Nikolay Kim
a7fdac1043
fix expect service registration and tests
2019-04-08 10:31:29 -07:00
Nikolay Kim
53da55aa3c
alpha4 release
2019-04-07 23:42:05 -07:00
Nikolay Kim
aa78565453
use objects pool for HttpRequest; optimize nested services call
2019-04-07 23:06:21 -07:00
Nikolay Kim
3c650ca194
remove buffer capacity for payload
2019-04-07 10:40:45 -07:00
Nikolay Kim
219baf3323
remove PayloadWriter trait
2019-04-07 10:29:26 -07:00
Nikolay Kim
ec09d6fbe6
optimize encode headers and body split
2019-04-07 10:03:38 -07:00
Nikolay Kim
748289f0ff
use custom headers map; more optimizations
2019-04-06 15:02:02 -07:00
Nikolay Kim
3872d3ba5a
refactor h1 dispatcher
2019-04-06 08:12:58 -07:00
Nikolay Kim
fbedaec661
add expect: 100-continue support #141
2019-04-05 16:46:44 -07:00
Nikolay Kim
02fcaca3da
add backward compatibility
2019-04-05 11:36:26 -07:00
Darin
18593d8476
updated Connector docs and renamed service() to finish() ( #757 )
...
* added Connector to actix-web::client namespace
* updated Connector, renaming service() to finish() and adding docs
* added doc for finish method on Connector
2019-04-05 11:34:27 -07:00
Nikolay Kim
b6dacaa23a
remove SendError and SendResponse services
2019-04-05 11:29:42 -07:00
Nikolay Kim
f89321fd01
fix import
2019-04-05 10:50:11 -07:00