1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-21 01:13:46 +00:00
actix-web/actix-http/src
Logan Magee 0c8196f8b0
Remove HttpResponseBuilder::json2() (#1903)
It's not necessary to keep both json() and json2() around since the
former reduces the ownership of its parameter to a borrow only to pass
the reference to the latter. Users can instead borrow themselves when
passing an owned value: there doesn't need to be two separate functions.

This change also makes HttpResponseBuilder::json() take T: Deref so it
can accept both references and web extractors like web::Json.
2021-01-18 12:14:29 +00:00
..
client cleanup top level doc comments 2021-01-15 05:38:50 +00:00
clinu remove deprecated on_connect methods (#1857) 2020-12-27 23:23:30 +00:00
encoding remove actix-threadpool.use actix_rt::task::spawn_blocking (#1878) 2021-01-09 16:04:19 +00:00
h1 Refactor poll_keepalive for readability (#1901) 2021-01-16 00:15:06 +00:00
h2 fmt 2021-01-07 00:35:19 +00:00
header revive commented out tests (#1912) 2021-01-17 05:19:32 +00:00
ws cleanup top level doc comments 2021-01-15 05:38:50 +00:00
body.rs fix bug where upgrade future is not reset properly (#1880) 2021-01-07 00:57:34 +00:00
builder.rs improve code readability 2021-01-04 00:49:02 +00:00
config.rs cleanup top level doc comments 2021-01-15 05:38:50 +00:00
error.rs cleanup top level doc comments 2021-01-15 05:38:50 +00:00
extensions.rs return option item from Extensions::insert (#1904) 2021-01-15 04:22:42 +00:00
helpers.rs remove deprecated on_connect methods (#1857) 2020-12-27 23:23:30 +00:00
httpcodes.rs add common 1xx http response builders (#1768) 2020-11-02 18:23:18 +09:00
httpmessage.rs response header rework (#1869) 2021-01-15 02:11:10 +00:00
lib.rs response header rework (#1869) 2021-01-15 02:11:10 +00:00
macros.rs fix CI clippy warnings (#1664) 2020-09-10 14:46:35 +01:00
message.rs remove leaked box in REQUEST_POOL and RESPONSE_POOL (#1896) 2021-01-09 15:40:20 +00:00
payload.rs cleanup imports 2019-12-13 11:24:57 +06:00
request.rs response header rework (#1869) 2021-01-15 02:11:10 +00:00
response.rs Remove HttpResponseBuilder::json2() (#1903) 2021-01-18 12:14:29 +00:00
service.rs fix bug where upgrade future is not reset properly (#1880) 2021-01-07 00:57:34 +00:00
test.rs response header rework (#1869) 2021-01-15 02:11:10 +00:00
time_parser.rs Replace deprecated now with now_utc (#1481) 2020-05-02 10:14:50 +01:00