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
Nikolay Kim
14075ebf7f
use released versions of actix-net
2019-12-02 23:33:39 +06:00
Nikolay Kim
068f047dd5
update service factory config
2019-12-02 21:37:13 +06:00
Nikolay Kim
f4c01384ec
update to latest actix-net
2019-12-02 17:33:11 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
8683ba8bb0
rename .to_async() to .to()
2019-11-21 21:36:35 +06:00
Nikolay Kim
3127dd4db6
migrate actix-web to std::future
2019-11-21 16:02:17 +06:00
Nikolay Kim
d9af8f66ba
Use actix-testing for testing utils
2019-09-25 10:28:41 +06:00
Leland Jansen
c193137905
actix_web::test::TestRequest::set_form ( #1058 )
2019-08-28 21:32:17 +06:00
Nikolay Kim
4092c7f326
clippy warnings
2019-07-17 15:08:30 +06:00
Cameron Dershem
37f4ce8604
Fixes typo in docs. ( #948 )
...
Small typo in docs.
2019-06-29 10:38:16 +06:00
Nikolay Kim
2ffda29f9b
Allow to test an app that uses async actors #897
2019-06-12 16:15:06 +06:00
Nikolay Kim
d3e807f6e9
move Payload to inner http request
2019-05-22 11:49:27 -07:00
Nikolay Kim
4e141d7f5d
Merge branch 'master' of github.com:actix/actix-web
2019-05-22 11:18:42 -07:00
Nikolay Kim
12842871fe
Clear http requests pool on app service drop #860
2019-05-22 11:18:33 -07:00
Aliaksandr Rahalevich
fc85ae4014
small documentation fix ( #856 )
2019-05-21 10:43:18 -07:00
Harry Stern
5826f39dbe
Add set_json
method to TestRequest ( #851 )
...
- Takes a type which implements serde::Serialize, serializes it to JSON,
and sets it as the payload. The content-type is also set to JSON.
2019-05-18 19:36:28 -07:00
Nikolay Kim
df08baf67f
update actix-net dependencies
2019-05-12 08:34:51 -07:00
Nikolay Kim
fa78da8156
unify route and app data, it allows to provide global extractor config #775
2019-05-04 19:43:49 -07:00
Nikolay Kim
94a0d1a6bc
remove old api doc refs
2019-04-29 18:42:21 -07:00
Nikolay Kim
f4e1205cbb
fix reactor drop panic
2019-04-29 10:14:08 -07:00
Nikolay Kim
d2c1791067
add async handler test with blocking call
2019-04-29 09:45:37 -07:00
Nikolay Kim
f4b4875cb1
Add helper function for executing futures test::block_fn()
2019-04-29 09:34:14 -07:00
Nikolay Kim
29a841529f
Allow to construct Data instances to avoid double Arc for Send + Sync types.
2019-04-29 09:26:12 -07:00
Darin
b51b5b763c
added clarification to docs regarding middleware processing sequence, added delete method to TestRequest ( #799 )
...
* added clarification to docs regarding middleware processing sequnce
* added delete method to TestRequest, doc, and test
2019-04-29 09:14:36 -07:00
Nikolay Kim
48bee55087
.to_async() handler can return Responder type #792
2019-04-22 14:22:08 -07:00
Nikolay Kim
7292d0b696
drop chrono and use i64 for max age
2019-04-19 17:23:17 -07:00
dowwie
da86b6e062
added put and patch to TestRequest, docs, and test
2019-04-18 18:06:32 -04:00
Nikolay Kim
b64851c5ec
enable runtime for test:: methods
2019-04-17 10:28:27 -07:00
Nikolay Kim
7a28b32f6d
Rename test::call_success to test::call_service
2019-04-15 07:44:07 -07:00
Nikolay Kim
f9078d41cd
add test::read_response; fix TestRequest::app_data()
2019-04-14 19:52:12 -07:00
Darin
4cc2b38059
added read_response_json for testing ( #776 )
...
* added read_response_json for testing
* cleaned up
* modied docs for read_response_json
* typo in doc
* test code in doc should compile now
* use type coercion in doc
* removed generic R, replaced with Request
2019-04-14 16:25:45 -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
5cfba5ff16
add FramedRequest builder for testing
2019-04-12 11:15:58 -07:00