mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-20 00:00:11 +02:00
Move FromRequest and IntoResponse into new axum-core crate (#564)
* Move `IntoResponse` to axum-core * Move `FromRequest` to axum-core * some clean up * Remove hyper dependency from axum-core * Fix docs reference * Use default * Update changelog * Remove mention of default type
This commit is contained in:
@@ -73,9 +73,6 @@ where
|
||||
JsonRejection::MissingJsonContentType(err) => {
|
||||
(StatusCode::BAD_REQUEST, err.to_string().into())
|
||||
}
|
||||
JsonRejection::BodyAlreadyExtracted(err) => {
|
||||
(StatusCode::INTERNAL_SERVER_ERROR, err.to_string().into())
|
||||
}
|
||||
JsonRejection::HeadersAlreadyExtracted(err) => {
|
||||
(StatusCode::INTERNAL_SERVER_ERROR, err.to_string().into())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user