Rotem Yaari
d03296237e
Log error results in Logger middleware ( closes #938 ) ( #984 )
...
* Log error results in Logger middleware (closes #938 )
* Log internal server errors with an ERROR log level
* Logger middleware: don't log 500 internal server errors, as Actix now logs them always
* Changelog
2019-07-18 14:31:18 +06:00
Nikolay Kim
2a2d7f5768
nightly clippy warnings
2019-07-17 15:53:51 +06:00
Ravi Shankar
32718b7e31
Expose factory traits and some clippy fixes ( #983 )
2019-07-17 12:58:42 +06:00
Mohab Usama
f1764bba43
Fix Logger time format (use rfc3339) ( #867 )
...
* Fix Logger time format (use rfc3339)
* Update change log
2019-05-31 12:09:21 +04:00
Nikolay Kim
df08baf67f
update actix-net dependencies
2019-05-12 08:34:51 -07:00
Nikolay Kim
70a4c36496
use Error explicitly
2019-04-25 11:14:32 -07:00
Nikolay Kim
420d3064c5
Add .peer_addr() #744
2019-04-16 10:11:38 -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
748289f0ff
use custom headers map; more optimizations
2019-04-06 15:02:02 -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
faa3ea8e5b
rename BodyLength to BodySize
2019-03-27 09:24:55 -07:00
Nikolay Kim
86a21c956c
rename .middleware to .wrap
2019-03-25 13:02:10 -07: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
2d7293aaf8
copy actix-web2
2019-03-01 22:51:32 -08: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
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
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
Josh Leeb-du Toit
9c9eb62031
Update Middleware trait to use &mut self
2018-06-02 16:47:18 +10:00
Nikolay Kim
3f5a39a5b7
cargo fmt
2018-06-01 09:37:14 -07:00
Nikolay Kim
45e9aaa462
rustfmt 0.7
2018-05-17 12:20:20 -07:00
Nikolay Kim
54c33a7aff
Allow to exclude certain endpoints from logging #211
2018-05-08 16:30:34 -07:00
Nikolay Kim
d9a4fadaae
make HttpRequest::extensions() readonly
2018-05-01 09:05:50 -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
Nikolay Kim
813d1d6e66
doc strings layout
2018-04-18 20:41:03 -07:00
Nikolay Kim
113f5ad1a8
add rustfmt config
2018-04-13 16:02:01 -07:00
Nikolay Kim
7be4b1f399
clippy warns
2018-04-04 20:24:09 -07:00
Nikolay Kim
83bf852192
Fix logger request duration calculation
2018-04-02 11:09:24 -07:00
Nikolay Kim
3ee228005d
rename Application
2018-03-31 00:16:55 -07:00
Nikolay Kim
44e3df82f6
simplify http response construction; deprecate httpcodes
2018-03-30 23:07:33 -07:00
Nikolay Kim
2f60a4b89d
add handler with exatractor
2018-03-26 23:10:31 -07:00
Nikolay Kim
a7bf635158
unify headers and body processing for client response and server request
2018-02-27 15:03:28 -08:00
Nikolay Kim
fd56e5dc82
do not use regset for route recognition
2018-02-21 14:31:22 -08:00
Nikolay Kim
187644e178
update logger doc string
2018-02-20 12:53:51 -08:00
Nikolay Kim
ce78f17a79
refactor Middleware trait, use Result
2018-01-09 22:48:35 -08:00
Nikolay Kim
91230afc44
fix time calculations
2018-01-04 09:32:33 -08:00
Nikolay Kim
cc38b30f7b
refactor http actor usage
2017-12-31 17:26:32 -08:00
Nikolay Kim
29adc20581
rename module
2017-12-26 19:59:41 -08:00