1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 01:35:13 +01:00
Commit Graph

3094 Commits

Author SHA1 Message Date
Nikolay Kim
9c3789cbd0 revert DateServiceInner changes 2019-07-18 17:37:41 +06:00
Armin Ronacher
29098f8397 Add support for downcasting response errors (#986)
* Add support for downcasting response errors

* Added test for error casting
2019-07-18 17:25:50 +06:00
Nikolay Kim
fbdda8acb1 Unix domain sockets (HttpServer::bind_uds) #92 2019-07-18 17:24:12 +06:00
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
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
Nikolay Kim
f410f3330f prepare actix-session release 2019-07-08 23:25:51 +06: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
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
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
Nikolay Kim
596483ff55 prepare actix-web-actors release 2019-06-28 10:54:23 +06:00
anthonyjchriste
768859513a Expose the max limit for payload sizes in Websocket Actors. #925 (#933)
* Expose the max limit for payload sizes in Websocket Actors.

* Revert to previous not-formatted code.

* Implement WebsocketContext::with_codec and make Codec Copy and Clone.

* Fix formatting.

* Fix formatting.
2019-06-28 10:49:03 +06:00
messense
44bb79cd07 Call req.path() on Json extractor error only (#945)
* Call req.path() on Json extractor error only

* Cleanup len parse code
2019-06-28 10:44:53 +06:00
Nikolay Kim
af9fb5d190 Support asynchronous data factories #850 2019-06-28 10:43:52 +06:00
Darin
50a9d9e2c5
Merge branch 'master' into master 2019-06-27 06:38:13 -04:00
Cameron Dershem
c0c71f82c0 Fixes typo. (#940)
Small typo fix.
2019-06-25 23:23:36 +06:00
Darin
93855b889a
Merge branch 'master' into master 2019-06-24 18:41:48 -04:00
dowwie
fa7e0fe6df updated cookie.rs req to get_changes 2019-06-24 18:40:14 -04:00
Dustin Bensing
b948f74b54 Extractor configuration Migration (#937)
added guide for Extractor configuration in MIGRATION.md
2019-06-24 07:16:04 +06:00