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
Douman
1e7f97a111
Add Normalization middleware for in place ( #783 )
2019-04-19 13:53: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
ab4fda6084
update tests
2019-04-14 20:20:33 -07:00
Nikolay Kim
ee33f52736
make extractor config type explicit
2019-04-13 16:35:25 -07:00
Nikolay Kim
4f30fa9d46
Remove generic type for request payload, always use default
2019-04-13 14:50:54 -07:00
Nikolay Kim
9bb40c249f
add h1::SendResponse future; renamed to MessageBody::size
2019-04-10 12:24:17 -07:00
Nikolay Kim
75b213a6f0
refactor FromRequest trait
2019-04-07 14:43:07 -07:00
Nikolay Kim
748289f0ff
use custom headers map; more optimizations
2019-04-06 15:02:02 -07:00
Nikolay Kim
bc834f6a03
remove some static contraints
2019-04-04 10:59:34 -07:00
Nikolay Kim
1e2bd68e83
Render error and return as response body
2019-04-03 19:55:19 -07:00
Haze
7d6085ddbd
Add %U (URLPath) for logger ( #752 )
...
* Add %R (Route) for logger
* Requested Updates (Route => URLPath, %R => %U)
2019-04-03 17:41:42 -07:00
Nikolay Kim
bca31eb7ad
remove Deref
2019-04-02 13:35:01 -07:00
Nikolay Kim
34695f4bce
rename test methods; update tests
2019-03-31 20:43:00 -07:00
Nikolay Kim
d846328f36
fork cookie crate
2019-03-29 21:13:39 -07:00
Douman
00526f60dc
Impl BodyEncoding for Response ( #740 )
2019-03-29 16:29:11 -07:00
Nikolay Kim
5795850bbb
decompress payload in cpu threadpool
2019-03-28 11:08:24 -07:00
Nikolay Kim
e254fe4f9c
allow to override response body encoding
2019-03-27 11:29:31 -07:00
Nikolay Kim
3edc515bac
refactor RequestHead/ResponseHead
2019-03-27 10:38:01 -07:00
Nikolay Kim
faa3ea8e5b
rename BodyLength to BodySize
2019-03-27 09:24:55 -07:00
Nikolay Kim
2629699b62
rename flate2-c feature to flate2-zlib
2019-03-26 18:46:06 -07:00
Nikolay Kim
1904b01fc0
add content-encoding decompression
2019-03-26 15:14:32 -07:00
Nikolay Kim
86a21c956c
rename .middleware to .wrap
2019-03-25 13:02:10 -07:00
Nikolay Kim
c1e8d8363c
fix errhandlers doc string
2019-03-24 11:49:26 -07:00
Nikolay Kim
913155d34c
update doc strings
2019-03-24 11:47:23 -07:00
Nikolay Kim
ede32c8b3f
export errhandlers module
2019-03-24 11:32:30 -07:00
Nikolay Kim
307b2e5b0e
fix compress features
2019-03-24 11:29:35 -07:00
Nikolay Kim
bc01d39d4d
add error response test for cors
2019-03-23 22:03:40 -07:00
Nikolay Kim
5b06f2bee5
port cors middleware
2019-03-23 21:29:16 -07:00
Nikolay Kim
60050307bd
session feature is renamed to cookies
2019-03-23 11:18:31 -07:00
Nikolay Kim
1e069bb843
Merge branch '1.0'
2019-03-23 10:16:32 -07:00
David McGuire
cc7f6b5eef
Fix preflight CORS header compliance; refactor previous patch. ( #717 )
2019-03-11 07:26:54 +03:00
Nikolay Kim
b8829bbf22
add identity middleware tests
2019-03-10 17:16:32 -07:00
Nikolay Kim
4d96abb639
use actix_web::Error for middleware errors
2019-03-10 16:35:38 -07:00
Nikolay Kim
16c42be4a2
simplify extractor configuration, config is optional now
2019-03-10 10:53:56 -07:00
Nikolay Kim
3a2035a121
fix doc tests
2019-03-09 21:15:26 -08:00
Nikolay Kim
be9031c55e
update doc api
2019-03-09 20:48:05 -08:00
Nikolay Kim
12f0c78091
port identity middleware
2019-03-09 20:40:09 -08:00
Nikolay Kim
fde55ffa14
revert generic request parameter for service; support ServerConfig as new factory config
2019-03-09 09:49:11 -08:00
Nikolay Kim
60c048c8cd
fix nested resources
2019-03-06 19:27:18 -08:00
Nikolay Kim
244fff9e0a
added Logger middleware
2019-03-06 19:19:27 -08:00
Nikolay Kim
fe22e83144
refactor service registration process; unify services and resources
2019-03-06 15:47:15 -08:00
Nikolay Kim
03248028a9
update actix-service
2019-03-05 10:08:08 -08:00
Nikolay Kim
b6fe1dacf2
update middleware impl
2019-03-04 21:42:51 -08:00
Nikolay Kim
bd4124587a
provide block_on function for testing purpose
2019-03-04 13:25:35 -08:00
Nikolay Kim
d5c54a1867
update extractor tests
2019-03-02 22:03:45 -08:00
Nikolay Kim
352e7b7a75
update tests for defaultheaders middleware
2019-03-02 21:35:31 -08:00
Nikolay Kim
75fbb97480
update new transform trait
2019-03-02 13:57:00 -08:00
Nikolay Kim
cc20fee628
add request chain services
2019-03-02 11:53:05 -08:00
Nikolay Kim
2d7293aaf8
copy actix-web2
2019-03-01 22:51:32 -08:00
BlueC0re
bfdf762062
Only return a single Origin value ( #644 )
...
Only return a single origin if matched.
2018-12-24 21:16:07 +03:00
Douman
46db09428c
Prepare release 0.7.16
2018-12-11 21:04:05 +03:00
Douman
0745a1a9f8
Remove usage of upcoming keyword async
...
AsyncResult::async is replaced with AsyncResult::future
2018-12-05 18:23:04 +03:00
Julian Tescher
8e354021d4
Add SameSite option to identity middleware cookie ( #581 )
2018-11-07 23:24:06 +03:00
Stanislav Tkach
3b536ee96c
Use old clippy attributes syntax ( #562 )
2018-11-01 11:14:48 +03:00
Nikolay Kim
127af92541
clippy warnings
2018-10-01 21:16:56 -07:00
Nikolay Kim
9f1417af30
refactor http service builder
2018-09-27 18:33:29 -07:00
Douman
1b298142e3
Correct composing of multiple origins in cors ( #518 )
2018-09-21 08:45:22 +03:00
Nikolay Kim
002bb24b26
unhide SessionBackend and SessionImpl traits and cleanup warnings
2018-09-07 20:46:43 -07:00
Nikolay Kim
1716380f08
clippy fmt
2018-08-23 09:48:01 -07:00
Mathieu Amiot
9a10d8aa7a
Fixed headers' formating for CORS Middleware Access-Control-Expose-Headers header value to HTTP/1.1 & HTTP/2 spec-compliant format ( #436 )
2018-08-03 15:03:11 +03:00
Nikolay Kim
d3b12d885e
Merge branch 'master' into master
2018-07-24 14:07:03 -07:00
Denis Kolodin
b367f07d56
Add http_only flag to CookieSessionBackend
2018-07-23 12:49:59 +03:00
Damjan Georgievski
56b924e155
remove the timestamp from the default logger middleware
...
env_logger and other logging systems will (or should) already add their
own timestamp.
2018-07-21 15:15:28 +02:00
Douman
29a275b0f5
Session should write percent encoded cookies and add cookie middleware test ( #393 )
...
* Should write percent encoded cookies to HTTP response
* Add cookie middleware test
2018-07-17 08:38:18 +03:00
Nikolay Kim
da915972c0
refactor router
2018-07-15 16:25:56 +06:00
Nikolay Kim
b8b90d9ec9
rename ResourceHandler to Resource
2018-07-12 15:30:01 +06:00
Nikolay Kim
6fd686ef98
cleanup warnings
2018-07-04 21:01:27 +06:00
Nikolay Kim
fec6047ddc
refactor HttpRequest mutability
2018-07-02 23:35:32 +06:00
Nikolay Kim
4fadff63f4
Use Box::leak for dynamic param names
2018-06-23 09:57:03 +06:00
Nikolay Kim
765c38e7b9
remove libc dependency
2018-06-22 11:47:33 +06:00
Nikolay Kim
65ca563579
use read only self for Middleware
2018-06-21 23:06:23 +06:00
Nikolay Kim
0f2aac1a27
remove unneed Send and Sync
2018-06-17 08:32:22 +06:00
Nikolay Kim
8261cf437d
update actix api
2018-06-13 23:37:19 -07:00
Nikolay Kim
f94fd9ebee
CORS: Do not validate Origin header on non-OPTION requests #271
2018-06-05 07:39:47 -07:00
Nikolay Kim
984791187a
Middleware::response is not invoked if error result was returned by another Middleware::start #255
2018-06-04 13:42:47 -07:00
Matthijs Brobbel
268c5d9238
Fix typo
2018-06-03 20:28:08 +02:00
Nikolay Kim
a61a1b0efe
Merge branch 'master' into trait-middleware-mut-self
2018-06-02 08:54:00 -07:00
Pascal Hertleif
890a7e70d6
Add missing API docs
...
These were written without much knowledge of the actix-web internals!
Please review carefully!
2018-06-02 15:52:50 +02:00
Josh Leeb-du Toit
9c9eb62031
Update Middleware trait to use &mut self
2018-06-02 16:47:18 +10:00
Nikolay Kim
c8930b7b6b
fix rustfmt formatting
2018-06-01 10:27:23 -07:00
Nikolay Kim
3f5a39a5b7
cargo fmt
2018-06-01 09:37:14 -07:00
Nikolay Kim
154cd3c5de
better actix mod re-exports
2018-06-01 09:36:16 -07:00
Douman
80965d7a9a
Re-export actix dependency. Closes #260 ( #264 )
...
- Re-export actix's prelude into actix namespace
- Removing implicit dependency on root's actix module
2018-05-31 20:43:14 +03:00
Nikolay Kim
ecd05662c0
use new actix system api
2018-05-29 10:31:37 -07:00
Bruno Bigras
4dcecd907b
Add same-site to CookieSessionBackend
...
closes #247
2018-05-25 19:18:16 -04:00
Nikolay Kim
45e9aaa462
rustfmt 0.7
2018-05-17 12:20:20 -07:00
Nikolay Kim
8de1f60347
add session extractor doc api
2018-05-16 21:05:59 -07:00
Nikolay Kim
b4252f8fd1
implement extractor for Session
2018-05-16 21:02:51 -07:00
Nikolay Kim
54c33a7aff
Allow to exclude certain endpoints from logging #211
2018-05-08 16:30:34 -07:00
Alexander Andreev
cd11293c1f
spelling check
2018-05-06 19:07:30 +03:00
Nikolay Kim
58079b5bbe
add session test
2018-05-02 19:11:44 -07:00
Nikolay Kim
32a2866449
Allow to override files listing renderer for #203
2018-05-02 15:53:07 -07:00
Nikolay Kim
9b6343d54b
refactor session impl
2018-05-01 09:40:23 -07:00
Nikolay Kim
d9a4fadaae
make HttpRequest::extensions() readonly
2018-05-01 09:05:50 -07:00
Nikolay Kim
eefbe19651
remove deprecated types and methods
2018-04-29 21:05:10 -07:00
Nikolay Kim
c72d1381a6
clippy warnings
2018-04-29 09:09:08 -07:00
Nikolay Kim
de49796fd1
clippy warnings; fmt
2018-04-28 22:55:47 -07:00