mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 09:18:28 +00:00
feat:cors
This commit is contained in:
@@ -77,6 +77,19 @@ pin_project! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<RestBody, GrpcBody> Default for HybridBody<RestBody, GrpcBody>
|
||||||
|
where
|
||||||
|
RestBody: Default,
|
||||||
|
|
||||||
|
GrpcBody: Default,
|
||||||
|
{
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::Rest {
|
||||||
|
rest_body: RestBody::default(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<RestBody, GrpcBody> http_body::Body for HybridBody<RestBody, GrpcBody>
|
impl<RestBody, GrpcBody> http_body::Body for HybridBody<RestBody, GrpcBody>
|
||||||
where
|
where
|
||||||
RestBody: http_body::Body + Send + Unpin,
|
RestBody: http_body::Body + Send + Unpin,
|
||||||
|
|||||||
Reference in New Issue
Block a user