mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-28 17:18:58 +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>
|
||||
where
|
||||
RestBody: http_body::Body + Send + Unpin,
|
||||
|
||||
Reference in New Issue
Block a user