Skip to content

Reexport HTTPTypes and AsyncStreaming from HTTPAPIs#130

Merged
gjcairo merged 2 commits intomainfrom
reexport-imports
Mar 10, 2026
Merged

Reexport HTTPTypes and AsyncStreaming from HTTPAPIs#130
gjcairo merged 2 commits intomainfrom
reexport-imports

Conversation

@gjcairo
Copy link
Contributor

@gjcairo gjcairo commented Mar 10, 2026

Motivation

We should reexport HTTPTypes and AsyncStreaming so that users importing HTTPAPIs don't have to also import those modules.

Modifications

Add an Exports file with @_exported imports for HTTPTypes and AsyncStreaming.

@gjcairo gjcairo requested a review from FranzBusch March 10, 2026 15:02
@gjcairo gjcairo added the 🆕 semver/minor Adds new public API. label Mar 10, 2026
@guoye-zhang
Copy link
Contributor

We can remove the imports of AsyncStreaming and HTTPTypes from all the other files in HTTPAPIs if we want.

@gjcairo
Copy link
Contributor Author

gjcairo commented Mar 10, 2026

Yeah I wasn't sure what to do from a "style" perspective: do we prefer to keep all used modules included in the files that use them?

@guoye-zhang
Copy link
Contributor

It's hard to enforce since the compiler builds with or without the imports, so new files will likely miss them. Personally I would just remove them to be consistent.

@gjcairo
Copy link
Contributor Author

gjcairo commented Mar 10, 2026

That's a fair argument - I've removed them

@gjcairo gjcairo enabled auto-merge (squash) March 10, 2026 16:06
@gjcairo gjcairo merged commit ff91276 into main Mar 10, 2026
34 of 41 checks passed
@gjcairo gjcairo deleted the reexport-imports branch March 10, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants