Conversation
|
…ve-2.0 Gate the coverage_attribute nightly feature in fetch's lib.rs so the #[coverage(off)] attributes on test modules compile under the coverage job, and allow the CDLA-Permissive-2.0 license used by webpki-root-certs (pulled in via rustls-platform-verifier) so cargo-deny passes with --all-features. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #475 +/- ##
========================================
Coverage 100.0% 100.0%
========================================
Files 319 335 +16
Lines 24676 25586 +910
========================================
+ Hits 24676 25586 +910 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Copilot stopped reviewing on behalf of
martintmk due to an error
June 4, 2026 19:41
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
ralfbiedert
approved these changes
Jun 5, 2026
sandersaares
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces
fetch, a fast and safe HTTP client for the Oxidizer project that is runtime-agnostic and transport-agnostic. It bundles the capabilities real-world services need — TLS, resilience, observability, and testability — into a single client that works out of the box, while letting libraries defer the choice of runtime and HTTP transport to the consuming application.The request pipeline is built around a swappable transport handler at its leaf, with resilience, observability, routing, logging, and retries layered on top. Tokio + hyper work out of the box, but you can plug in any async runtime/IO, or even reuse another HTTP client (e.g.
reqwest) as the transport.Highlights
rustls(withaws-lc-rs) and platform trust store verification, ornative-tlsas an alternative backend.seatbelt, pre-configured in the standard pipeline.RequestHandler-based pipeline (standard, custom, and minimal variants) for adding or customizing behaviors.test-utilfeature mocks responses and client behavior for fast, deterministic tests with no network access.BytesViewbuffers for large responses.get(),post(),put(),delete(),fetch_text(),fetch_bytes(),fetch_json()/fetch_json_owned(), plus templated-URI support.Examples
Simple case — create a client and fetch text:
Customized request — headers, HTTP version, and a body:
Builder case — configure telemetry and TLS on the client itself:
Feature flags
tokio— Tokio runtime integration (HttpClient::new_tokio/builder_tokio).json— JSON request/response support.tls/rustls—rustlsbackend withaws-lc-rs(recommended).native-tls— platform native TLS backend.test-util— response/client mocking for tests.Comparison vs.
reqwestBoth build on
hyperby default, butfetchadds first-class custom runtime/transport support, built-in resilience, OTel metrics/logging, a composable request pipeline, zero-copy buffers, and testing tools out of the box. Some advanced features (cookies, redirects, forms) are not yet supported and may come later.