mirror of https://github.com/fafhrd91/actix-web
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. |
||
|---|---|---|
| .. | ||
| client | ||
| clinu | ||
| encoding | ||
| h1 | ||
| h2 | ||
| header | ||
| ws | ||
| body.rs | ||
| builder.rs | ||
| config.rs | ||
| error.rs | ||
| extensions.rs | ||
| helpers.rs | ||
| httpcodes.rs | ||
| httpmessage.rs | ||
| lib.rs | ||
| macros.rs | ||
| message.rs | ||
| payload.rs | ||
| request.rs | ||
| response.rs | ||
| service.rs | ||
| test.rs | ||
| time_parser.rs | ||