Skip to content

fix(#277): re-export http crate from reqwest-middleware#281

Open
Copilot wants to merge 5 commits intomainfrom
copilot/reexport-http-crate
Open

fix(#277): re-export http crate from reqwest-middleware#281
Copilot wants to merge 5 commits intomainfrom
copilot/reexport-http-crate

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 6, 2026

  • Add pub use http; to reqwest-middleware/src/lib.rs to re-export the http crate
  • Update CHANGELOG.md (reverted — changelog is managed automatically)
  • Fix rustfmt format error (ordering of pub use http;)
Original prompt

This section details on the original issue you should resolve

<issue_title>Please re-export the http crate.</issue_title>
<issue_description>## Motivations

reqwest-middleware uses http::Extensions and http::Error in its public API.

Atm, users have to add exact the same version of http to their Cargo.toml when they want to use reqwest-middleware.

It is best practice to re-export either the whole http crate or perhaps only the affected types.

reqwest-middleware-0.5.1</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: skos-ninja <6642527+skos-ninja@users.noreply.github.com>
Copilot AI changed the title [WIP] Re-export the http crate for reqwest-middleware Re-export http crate from reqwest-middleware Mar 6, 2026
@skos-ninja
Copy link
Copy Markdown
Member

@copilot remove the changelog change as we don't manually update now

Copy link
Copy Markdown
Author

Copilot AI commented Mar 6, 2026

@skos-ninja The model claude-sonnet-4.6 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 0a5e3860-c8fe-4dba-9c3c-06b99fc3cdd1

@skos-ninja
Copy link
Copy Markdown
Member

@copilot remove the changelog change as we don't manually update now

Co-authored-by: skos-ninja <6642527+skos-ninja@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Mar 6, 2026

@copilot remove the changelog change as we don't manually update now

Done — removed the manual changelog entry in 1ae529a.

@skos-ninja
Copy link
Copy Markdown
Member

@copilot fix the format error from clippy

Co-authored-by: skos-ninja <6642527+skos-ninja@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Mar 6, 2026

@copilot fix the format error from clippy

Fixed in 60fa569 — moved pub use http; to the correct alphabetical position so rustfmt is happy.

@skos-ninja skos-ninja changed the title Re-export http crate from reqwest-middleware fix(#277): re-export http crate from reqwest-middleware Mar 6, 2026
@skos-ninja skos-ninja marked this pull request as ready for review March 6, 2026 14:45
@skos-ninja skos-ninja requested a review from a team as a code owner March 6, 2026 14:45
@skos-ninja skos-ninja enabled auto-merge (squash) March 6, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Please re-export the http crate.

2 participants