Ali MJ Al-Nasrawy
59be0c65c6
disallow query or fragements in url_for
constructions ( #2430 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-12-05 04:39:18 +00:00
Arniu Tseng
8ae278cb68
Remove FromRequest::Config
( #2233 )
...
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-09-11 01:11:16 +01:00
Ali MJ Al-Nasrawy
373b3f91df
rework ResourceMap
internals ( #2337 )
2021-09-01 04:48:43 +01:00
Rob Ede
5f412c67db
clippy
2021-08-13 18:49:58 +01:00
Rob Ede
f6e69919ed
update to router 0.5.0 beta ( #2339 )
2021-08-06 22:42:31 +01:00
Rob Ede
293c52c3ef
re-export ServiceFactory ( #2325 )
2021-07-12 16:55:41 +01:00
Igor Aleksanov
262c6bc828
Various refactorings ( #2281 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-06-26 15:33:43 +01:00
Ibraheem Ahmed
083ee05d50
Route::service
(#2262 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-06-23 21:30:06 +01:00
Rob Ede
12f7720309
deprecate App::data
and App::data_factory
( #2271 )
2021-06-22 15:50:58 +01:00
Rob Ede
f81d4bdae7
remove unused private hidden methods
2021-06-19 23:40:30 +01:00
Rob Ede
532f7b9923
refined error model ( #2253 )
2021-06-17 17:57:58 +01:00
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
Rob Ede
c8ed8dd1a4
migrate to -utils beta 4 ( #2127 )
2021-04-01 15:26:13 +01:00
Rob Ede
3188ef5731
don't use rust annotation on code doc blocks
2021-03-25 08:45:52 +00:00
Rob Ede
7fa6333a0c
use rcgen for tls key generation ( #1989 )
2021-02-13 17:16:36 +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
949d14ae2b
clean up header map ( #1964 )
2021-02-09 22:59:17 +00:00
fakeshadow
41bc04b1c4
Use immutable reference of service state. Update awc dns resolver. ( #1905 )
2021-02-07 01:00:40 +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
Rob Ede
6575ee93f2
big clean up and docs improvmenet of types mod ( #1894 )
2021-01-09 13:17:19 +00:00
fakeshadow
e1683313ec
optimize ServiceRequest methods ( #1870 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-01-04 00:32:41 +00:00
fakeshadow
3beb4cf2da
replace tinyvec with smallvec ( #1866 )
2021-01-01 23:18:25 +00:00
Joshua Parkin
1f70ef155d
Fix match_pattern() returning None for scope with resource of empty path ( #1798 )
...
* fix match_pattern function not returning pattern where scope has resource of path ""
* remove print in test
* make comparison on existing else if block
* add fix to changelog
2020-12-01 13:39:41 +00:00
Rob Ede
971ba3eee1
fix continous growth of app data in pooled requests ( #1609 )
...
fixes #1606
fixes #1607
2020-07-18 16:17:00 +01:00
Takashi Idobe
23c8191cca
add method to extract matched resource name ( #1577 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-06-27 16:22:16 +01:00
Rob Ede
fa28175a74
add method to extract matched resource pattern ( #1566 )
2020-06-23 00:58:20 +01:00
Yuki Okushi
a98e53ecb8
web: Minimize futures
dependencies
2020-05-19 08:29:12 +09:00
Rob Ede
879cad9422
allow parent data containers to be accessed from child scopes
2020-05-09 00:31:26 +01:00
Rob Ede
5b0f7fff69
fix spelling errors in doc comments
2020-04-21 04:09:35 +01:00
Jacob Brown
7c974ee668
Update doc comment for HttpRequest::app_data
( #1265 )
...
* update doc comment for `HttpRequest::app_data`
* add `no_run` to doc comment
* add `ignore` to doc comment
* Update src/request.rs
Co-Authored-By: Yuki Okushi <huyuumi.dev@gmail.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-11 03:55:20 +09: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
6c9f9fff73
clippy warnings
2019-12-08 00:46:51 +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
Priit Laes
0f09415469
Convert documentation examples to Rust 2018 edition ( #1120 )
...
* Convert types::query examples to rust-2018 edition
* Convert types::json examples to rust-2018 edition
* Convert types::path examples to rust-2018 edition
* Convert types::form examples to rust-2018 edition
* Convert rest of the examples to rust-2018 edition.
2019-10-07 11:29:11 +06:00
Nikolay Kim
63ddd30ee4
on_connect result isnt added to request extensions for http2 requests #1009
2019-09-01 13:15:02 +06:00
Philip Jenvey
616981ecf9
clear extensions before reclaiming HttpRequests in their pool ( #1063 )
...
Issue #1062
2019-08-29 09:35:05 +06:00
Nikolay Kim
c65dbaf88e
expose app's ResourceMap via resource_map method
2019-07-17 11:33:05 +06:00
Nikolay Kim
69456991f6
update api doc example for client and add panic info for connection_info
2019-07-11 14:40:37 +06:00
Nikolay Kim
d3e807f6e9
move Payload to inner http request
2019-05-22 11:49:27 -07:00
Nikolay Kim
12842871fe
Clear http requests pool on app service drop #860
2019-05-22 11:18:33 -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
420d3064c5
Add .peer_addr() #744
2019-04-16 10:11:38 -07:00
Nikolay Kim
7a28b32f6d
Rename test::call_success to test::call_service
2019-04-15 07:44:07 -07:00
Nikolay Kim
ee33f52736
make extractor config type explicit
2019-04-13 16:35:25 -07:00