OpenDAL used to passing content_type, cache_control directly like the following:
pub fn azblob_put_blob_request(
&self,
path: &str,
size: Option<u64>,
content_type: Option<&str>,
cache_control: Option<&str>,
body: AsyncBody,
) -> Result<Request<AsyncBody>> {}
It's not good and hard to maintain, sometimes clippy will raising warning for our code. So it's time for us to migrate code like this to passing OpXxx. For example, we can change the previous code to:
pub fn azblob_put_blob_request(
&self,
path: &str,
size: Option<u64>,
- content_type: Option<&str>,
- cache_control: Option<&str>,
+ args: &OpWrite,
body: AsyncBody,
) -> Result<Request<AsyncBody>> {}
Tasks
OpenDAL used to passing
content_type,cache_controldirectly like the following:It's not good and hard to maintain, sometimes clippy will raising warning for our code. So it's time for us to migrate code like this to passing
OpXxx. For example, we can change the previous code to:pub fn azblob_put_blob_request( &self, path: &str, size: Option<u64>, - content_type: Option<&str>, - cache_control: Option<&str>, + args: &OpWrite, body: AsyncBody, ) -> Result<Request<AsyncBody>> {}Tasks
gcsmethods signature by using OpXxxx #3087httpmethods signature by using OpRead/OpStat #3083oss_put_objectsignatures by using OpWrite #3080webdav_putsignatures by usingOpWrite. #3076webhdfsmethods signature by usingOpXxxx#3109