Added
impl<T: MessageBody> MessageBody for Pin<Box<T>>
. #2152Response::{ok, bad_request, not_found, internal_server_error}
. #2159- Helper
body::to_bytes
for async collecting message body into Bytes. #2158
Changes
- The type parameter of
Response
no longer has a default. #2152 - The
Message
variant ofbody::Body
is nowPin<Box<dyn MessageBody>>
. #2152 BodyStream
andSizedStream
are no longer restricted to Unpin types. #2152- Error enum types are marked
#[non_exhaustive]
. #2161
Removed
cookies
feature flag. #2065- Top-level
cookies
mod (re-export). #2065 HttpMessage
trait loses thecookies
andcookie
methods. #2065impl ResponseError for CookieParseError
. #2065- Deprecated methods on
ResponseBuilder
:if_true
,if_some
. #2148 ResponseBuilder::json
. #2148ResponseBuilder::{set_header, header}
. #2148impl From<serde_json::Value> for Body
. #2148Response::build_from
. #2159- Most of the status code builders on
Response
. #2159