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
Aaron Hill
b36fdc46db
Remove several usages of 'unsafe' ( #968 )
...
* Replace UnsafeCell in DateServiceInner with Cell
The previous API was extremely dangerous - calling `get_ref()`
followed by `reset()` would trigger instant UB, without requiring
any `unsafe` blocks in the caller.
By making DateInner `Copy`, we can use a normal `Cell` instead
of an `UnsafeCell`. This makes it impossible to cause UB (or even panic)
with the API.
* Split unsafe block HttpServiceHandlerResponse
Also add explanation of the safety of the usage of `unsafe`
* Replace UnsafeCell with RefCell in PayloadRef
This ensures that a mistake in the usage of 'get_mut' will cause
a panic, not undefined behavior.
2019-07-18 04:45:17 +06:00
Nikolay Kim
2a2d7f5768
nightly clippy warnings
2019-07-17 15:53:51 +06:00
Nikolay Kim
4092c7f326
clippy warnings
2019-07-17 15:08:30 +06:00
Nikolay Kim
ef3e1037a8
bump version
2019-07-17 14:18:26 +06:00
Nikolay Kim
baaa7b3fbb
Replace ClonableService with local copy
2019-07-17 13:55:44 +06:00
Ravi Shankar
32718b7e31
Expose factory traits and some clippy fixes ( #983 )
2019-07-17 12:58:42 +06:00
Nikolay Kim
c01611d8b5
prepare actix-web release
2019-07-17 12:07:12 +06:00
Nikolay Kim
7b1dcaffda
cleanup deprecation warning for Box<dyn>
2019-07-17 11:44:39 +06:00
Nikolay Kim
c65dbaf88e
expose app's ResourceMap via resource_map method
2019-07-17 11:33:05 +06:00
Nikolay Kim
c45728ac01
prep test server release
2019-07-16 10:21:52 +06:00
Andrea Corradi
6f71409355
Add DELETE, PATCH, OPTIONS methods to TestServerRunner ( #973 )
2019-07-16 10:19:28 +06:00
Nikolay Kim
13fe045bf8
Merge pull request #27 from Dowwie/master
...
added comprehensive tests for session workflow
2019-07-12 11:15:57 +06:00
dowwie
b874e0311a
added derive feature for serde
2019-07-11 15:35:43 -04:00
dowwie
7df26cb269
updated CHANGES.md
2019-07-11 15:19:37 -04:00
dowwie
3d9c1c55d6
updated CHANGES.md
2019-07-11 15:19:22 -04:00
dowwie
24b78b8e17
added comprehensive tests for session workflow
2019-07-11 15:17:57 -04:00
Nikolay Kim
8d17c8651f
update bench link
2019-07-11 14:45:58 +06:00
messense
b1143168e5
Impl Responder for (T, StatusCode) where T: Responder ( #954 )
2019-07-11 14:42:58 +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
Darin
ea7924897a
Merge pull request #26 from Dowwie/master
...
updated all dependencies
2019-07-10 06:25:02 -04:00
dowwie
b29f8cc0f0
updated log dep
2019-07-08 14:51:54 -04:00
dowwie
06ce468ee0
updated deps
2019-07-08 14:49:34 -04:00
Nikolay Kim
f410f3330f
prepare actix-session release
2019-07-08 23:25:51 +06:00
Darin
60f28d65f1
Merge pull request #23 from Dowwie/master
...
updated session logic to support login and logout functionality
2019-07-08 07:16:36 -04:00
dowwie
3244a359df
reverted to 0.6 because it wasn't ever released
2019-07-08 07:15:20 -04:00
Jeff Muizelaar
e1fcd203f8
Update the copyless version to 0.1.4 ( #956 )
...
< 0.1.4 failed to check for null when doing allocations which could lead to null dereferences.
2019-07-08 15:48:20 +06:00
Michael Snoyman
0d8a4304a9
Drop a duplicated word ( #958 )
2019-07-05 20:46:55 +06:00
dowwie
1d1ff66063
updated version to 0.7 and added comments to CHANGES.md
2019-07-04 06:10:03 -04:00
Darin
14cc5a5d6b
Merge pull request #912 from Dowwie/master
...
updated actix-session to support login and logout functionality
2019-07-03 21:07:07 -04:00
Darin
287c2b1d18
Merge branch 'master' into master
2019-07-03 18:50:19 -04:00
dowwie
7596ab69e0
reverted actix-web/CHANGES.md
2019-07-03 08:55:29 -04:00
dowwie
1fdd77bffa
reworded session info in CHANGES
2019-07-03 07:56:50 -04:00
dowwie
2d424957fb
updated version in Cargo to 0.2
2019-07-03 07:50:45 -04:00
dowwie
dabc4fe00b
updated actix-session/CHANGES with info
2019-07-03 07:50:11 -04:00
dowwie
5bf5b0acd2
updated CHANGES with info about actix-session update
2019-07-03 07:46:46 -04:00
dowwie
099a8ff7d8
updated session cookie to support login, logout, changes
2019-07-01 15:26:19 -04:00
dowwie
48ddb76915
updated logic to create session on new request wo cookie
2019-07-01 14:20:18 -04:00
Nikolay Kim
a28b7139e6
prepare awc release
2019-07-01 11:34:57 +06:00
Nikolay Kim
a0a469fe85
disable travis cargo cache
2019-07-01 11:33:11 +06:00
messense
dbab55dd6b
Bump rand crate version to 0.7 ( #951 )
2019-07-01 09:37:03 +06:00
Alec Moskvin
d2eb1edac3
Actix-web client: Always append a colon after username in basic auth ( #949 )
...
* Always append a colon after username in basic auth
* Update CHANGES.md
2019-07-01 09:34:42 +06:00
Sindre Johansen
5901dfee1a
Fix link to actix-cors ( #950 )
2019-06-30 21:30:04 +06:00
dowwie
0e05b37082
updated cookie session to update on change
2019-06-29 14:24:02 -04:00
Cameron Dershem
37f4ce8604
Fixes typo in docs. ( #948 )
...
Small typo in docs.
2019-06-29 10:38:16 +06:00
Nikolay Kim
12b5174850
update deps
2019-06-28 14:46:26 +06:00
Nikolay Kim
b77ed193f7
prepare actix-web release
2019-06-28 14:41:56 +06:00
Nikolay Kim
d286ccb4f5
Add on-connect callback #946
2019-06-28 14:34:26 +06:00
Nikolay Kim
cac162aed7
update actix-http changes
2019-06-28 12:34:43 +06:00
Nikolay Kim
a3a78ac6fb
Do not set Content-Length header, let actix-http set it #930
2019-06-28 11:42:20 +06:00