Xuanwo opened a new pull request, #9442: URL: https://github.com/apache/opendal/pull/9442
# Which issue does this PR close? Follow-up to [erickguan’s documentation request in #7894](https://github.com/apache/opendal/issues/7894#issuecomment-7279679330). # Rationale for this change Rust callers can add a default request header by configuring the existing reqwest client. That option is hard to discover from the `HttpTransport` API documentation. # What changes are included in this PR? The HTTP Optimization guide uses `ClientBuilder::default_headers` and the existing `with_reqwest_client` helper to set `x-client-label: example` for one operator. The label can reach any endpoint contacted through that client. Reqwest fills in missing headers, so a value already on the request takes precedence. Services such as S3 sign before handing the request to the transport, so a header required in the signature must be set before that step. # Are there any user-facing changes? Rust users can follow a link from the `HttpTransport` API documentation directly to the default-header example. # Breaking changes # AI Usage Statement - Pi, `magpie/codex/gpt-6.2-astra`, `high` effort — checked the APIs and example and drafted the PR text. - Pi, `magpie/codex/gpt-6.2-sol`, `max` effort — documentation implementation and verification. - Pi, `magpie/codex/gpt-6.2-astra`, `xhigh` effort — coordinated the documentation follow-up. -- 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]
