YuangGao opened a new pull request, #7636: URL: https://github.com/apache/opendal/pull/7636
# Which issue does this PR close? Part of #5486. # Rationale for this change The http service already wires `if_match` / `if_none_match` on read and stat. RFC 7232 defines `If-Modified-Since` / `If-Unmodified-Since` as the date-based counterparts, and they're standard on every HTTP/1.1 server # What changes are included in this PR? - Inject `If-Modified-Since` / `If-Unmodified-Since` in `http_get_request` and `http_head_request`. - Declare `read_with_if_modified_since`, `read_with_if_unmodified_since`, `stat_with_if_modified_since`, `stat_with_if_unmodified_since` on the http service capability. # Are there any user-facing changes? Yes — `op.reader_with(path).if_modified_since(...)` / `if_unmodified_since(...)` (and the stat equivalents) now work against http backends. No breaking changes. # AI Usage Statement AI-assisted implementation. -- 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]
