ryankert01 opened a new pull request, #7817:
URL: https://github.com/apache/opendal/pull/7817

   # Which issue does this PR close?
   
   N/A
   
   # Rationale for this change
   
   `Operator.Reader` accepted no options, unlike `Operator.Writer`. This brings 
it to
   parity with the Rust core's `Operator::reader_options`.
   
   # What changes are included in this PR?
   
   - **C FFI:** add `opendal_operator_reader_with` and the 
`opendal_reader_options` struct
     (mirrors core `ReaderOptions`: version, conditional headers, 
content-length hint, and
     concurrent/chunk/gap/prefetch), with setters and a `From` impl; regenerate 
`opendal.h`.
   - **Go:** add the `WithReaderFn` option family and `Reader(path string, opts 
...WithReaderFn)`;
     the `len(opts) == 0` fast path is unchanged.
   - Unit, C++, and behavior tests.
   
   # Are there any user-facing changes?
   
   Yes. `Operator.Reader` gains an optional variadic `opts ...WithReaderFn` and 
ten `ReaderWith*`
   constructors. Existing `op.Reader(path)` calls are unaffected.
   
   # AI Usage Statement
   
   Implemented and reviewed with Claude Code (Claude Opus 4.8) and Codex.
   


-- 
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