Xuanwo commented on issue #5426:
URL: https://github.com/apache/opendal/issues/5426#issuecomment-2564977551

   Hi, @XmchxUp, I believe we need an approach to allow users to utilize 
different options simultaneously, including `if_match`, `if_none_match`, 
`if_modified_since`, and so on. So it doesn't look good to me that have a 
`Reader::read_with_etag`.
   
   Maybe we can follow the same patten like `Operator::read_with` that we can 
have `Reader::read_with`, `Reader::into_futures_async_read_with` and 
`Reader::into_bytes_stream_with`.
   
   ```rust
   let r = op.reader_with(path).version("version-id").await?;
   let bs = 
r.read_with(0..1024).if_match("etag").if_modified_since(time).await?;
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to