Rob Ede
44c55dd036
remove cookie support from -http ( #2065 )
2021-04-09 18:07:10 +01:00
Rob Ede
c54a0713de
migrate integration testing to new crate ( #2112 )
2021-04-02 08:26:59 +01:00
Ibraheem Ahmed
50dc13f280
move typed headers and implement FromRequest ( #2094 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-01 16:42:18 +01:00
Rob Ede
c8ed8dd1a4
migrate to -utils beta 4 ( #2127 )
2021-04-01 15:26:13 +01:00
Michał Pokrywka
a807d33600
added TestServer::client_headers ( #2097 )
...
Co-authored-by: fakeshadow <24548779@qq.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-04-01 06:40:10 +01:00
Rob Ede
3188ef5731
don't use rust annotation on code doc blocks
2021-03-25 08:45:52 +00:00
Thomas de Zeeuw
9488757c29
Update to socket2 v0.4 ( #2092 )
2021-03-19 12:17:06 +00:00
fakeshadow
351286486c
fix clippy warning on nightly ( #2088 )
...
* fix clippy warning on nightly
2021-03-19 19:25:35 +08:00
fakeshadow
946cccaa1a
refactor awc::ClientBuilder ( #2008 )
2021-02-18 12:30:09 +00:00
Rob Ede
7fa6333a0c
use rcgen for tls key generation ( #1989 )
2021-02-13 17:16:36 +00:00
Rob Ede
4fc7d76759
s/websocket/WebSocket in docs
2021-02-12 00:27:20 +00:00
Rob Ede
31d9ed81c5
change rustfmt line width to 96
2021-02-11 23:03:17 +00:00
Rob Ede
77efc09362
hide httpmessage mod
2021-02-11 22:58:40 +00:00
Rob Ede
871ca5e4ae
stop claiming actor support
2021-02-11 22:58:40 +00:00
fakeshadow
519d7f2b8a
add trust-dns optional feature for actix-http and awc ( #1969 )
2021-02-09 10:41:20 +00:00
Rob Ede
9eaea6a2fd
tweak feature flags
2021-02-07 03:54:58 +00:00
fakeshadow
41bc04b1c4
Use immutable reference of service state. Update awc dns resolver. ( #1905 )
2021-02-07 01:00:40 +00:00
fakeshadow
20cf0094e5
fix master branch build. change web::block output type. ( #1957 )
2021-02-06 16:23:59 +00:00
Logan Magee
0c8196f8b0
Remove HttpResponseBuilder::json2() ( #1903 )
...
It's not necessary to keep both json() and json2() around since the
former reduces the ownership of its parameter to a borrow only to pass
the reference to the latter. Users can instead borrow themselves when
passing an owned value: there doesn't need to be two separate functions.
This change also makes HttpResponseBuilder::json() take T: Deref so it
can accept both references and web extractors like web::Json.
2021-01-18 12:14:29 +00:00
Rob Ede
b1dd8d28bc
response header rework ( #1869 )
2021-01-15 02:11:10 +00:00
fakeshadow
57398c6df1
Refactor/service request ( #1893 )
2021-01-11 01:29:16 +00:00
fakeshadow
46b2f7eaaf
use a non leak pool for HttpRequestInner ( #1889 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-01-10 22:59:44 +00:00
fakeshadow
32de9f8840
Tokio 1.0 ( #1813 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-01-03 23:47:04 +00:00
Petar Dambovaliev
b75a9b7a20
add error to message in test helper func ( #1812 )
2020-12-05 04:57:56 +09:00
Rob Ede
bf53fe5a22
bump actix dependency to v0.10 ( #1666 )
2020-09-11 12:09:52 +01:00
Rob Ede
cf5138e740
fix clippy async_yields_async lints ( #1667 )
2020-09-11 11:29:17 +01:00
Igor Aleksanov
121075c1ef
awc: Rename Client::build to Client::builder ( #1665 )
2020-09-11 09:24:39 +01:00
Yuki Okushi
92b5bcd13f
Check format and tweak CI config ( #1619 )
2020-07-22 00:28:33 +01:00
Yuki Okushi
6dd78d9355
Run rustfmt
2020-05-21 17:56:53 +09:00
Yuki Okushi
9a7f93610a
web: Replace net2
crate with socket2
2020-05-19 09:34:37 +09:00
Yuki Okushi
a98e53ecb8
web: Minimize futures
dependencies
2020-05-19 08:29:12 +09:00
Rob Ede
bb17280f51
simplify data factory future polling ( #1473 )
...
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-04-29 15:38:53 +09:00
Tore Pettersen
0ad02ee0e0
Add convenience functions for testing ( #1401 )
...
* Add convenience functions for testing
* Fix remarks from PR and add tests
* Add unpin to read_json_body
* Update changelog
2020-04-06 04:12:44 +09:00
Yuki Okushi
d602a7e386
Fix read_body
doc
2020-03-13 05:52:58 +09:00
Maksym Vorobiov
77058ef779
adopt MessageBody Pin changes to actix-web root
2020-02-27 09:42:32 +09:00
Maksym Vorobiov
835a00599c
rollback missed dependencies and CHANGES in crates except actix-http
2020-02-27 09:37:05 +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
Yuki Okushi
a2d4ff157e
Update call_service
documentation ( #1302 )
...
Co-authored-by: Christian Battaglia <christian.d.battaglia@gmail.com>
2020-01-28 08:09:46 +09:00
Nikolay Kim
a4ad5e6b69
update timeouts for test server
2019-12-25 20:52:20 +04:00
Nikolay Kim
7882f545e5
Allow to gracefully stop test server via TestServer::stop()
2019-12-25 12:10:48 +04:00
Nikolay Kim
c7f3915779
update actix-service dep
2019-12-22 16:39:25 +04:00
Darin
3751a4018e
fixed test::init_service api docs (missing await) ( #1230 )
2019-12-21 08:47:18 +06:00
Nikolay Kim
0cb1b0642f
add test server data test
2019-12-20 23:18:59 +06:00
Nikolay Kim
c877840c07
rename App::register_data to App::app_data and HttpRequest::app_data returns Option<&T> instead of Option<&Data<T>>
2019-12-20 17:13:09 +06:00
Nikolay Kim
20248daeda
Allow to set peer_addr for TestRequest #1074
2019-12-20 16:11:51 +06:00
Nikolay Kim
a08d8dab70
AppConfig::secure() is always false. #1202
2019-12-20 16:04:51 +06:00
Nikolay Kim
a153374b61
migrate actix-web-actors
2019-12-15 22:45:38 +06:00
Nikolay Kim
db1d6b7963
refactor test server impl
2019-12-12 22:28:47 +06:00
Nikolay Kim
6c9f9fff73
clippy warnings
2019-12-08 00:46:51 +06:00
Nikolay Kim
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00