Skip to content

Fix visibility of DevSupportHttpClient by extracting DevSupportRequestHeaders#55739

Closed
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D94354168
Closed

Fix visibility of DevSupportHttpClient by extracting DevSupportRequestHeaders#55739
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D94354168

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:
Extract header management from the internal DevSupportHttpClient into a new
public DevSupportRequestHeaders singleton in devsupport.interfaces. This
allows external consumers (e.g. Expo Dev Launcher) to register custom HTTP
headers that will be applied to all React Native dev-support network traffic
without depending on internal APIs.

DevSupportHttpClient now delegates to DevSupportRequestHeaders.allHeaders()
instead of maintaining its own ConcurrentHashMap.

A separate request_headers Buck target is introduced to avoid a dependency
cycle (bridgeinspectorinterfacesbridge).

Changelog: [Android][Added] - Public DevSupportRequestHeaders API for registering custom dev-support HTTP headers

Differential Revision: D94354168

…tHeaders

Summary:
Extract header management from the `internal` `DevSupportHttpClient` into a new
public `DevSupportRequestHeaders` singleton in `devsupport.interfaces`. This
allows external consumers (e.g. Expo Dev Launcher) to register custom HTTP
headers that will be applied to all React Native dev-support network traffic
without depending on internal APIs.

`DevSupportHttpClient` now delegates to `DevSupportRequestHeaders.allHeaders()`
instead of maintaining its own `ConcurrentHashMap`.

A separate `request_headers` Buck target is introduced to avoid a dependency
cycle (`bridge` → `inspector` → `interfaces` → `bridge`).

Changelog: [Android][Added] - Public DevSupportRequestHeaders API for registering custom dev-support HTTP headers

Differential Revision: D94354168
@meta-codesync

meta-codesync Bot commented Feb 25, 2026

Copy link
Copy Markdown

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94354168.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 25, 2026
@meta-codesync meta-codesync Bot closed this in e0d34b2 Feb 25, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 25, 2026
@meta-codesync

meta-codesync Bot commented Feb 25, 2026

Copy link
Copy Markdown

This pull request has been merged in e0d34b2.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cortinico in e0d34b2

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants