Skip to content

Remove custom header support from DevSupportHttpClient - #55884

Closed
cortinico wants to merge 2 commits into
react:mainfrom
cortinico:export-D95059080
Closed

Remove custom header support from DevSupportHttpClient#55884
cortinico wants to merge 2 commits into
react:mainfrom
cortinico:export-D95059080

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:
The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the setOkHttpClientFactory to provide this same logic.

Changelog: [Internal]

Differential Revision: D95059080

@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 Mar 3, 2026
@meta-codesync

meta-codesync Bot commented Mar 3, 2026

Copy link
Copy Markdown

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

cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:
Pull Request resolved: react#55884

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:
Pull Request resolved: react#55884

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
@cortinico
cortinico force-pushed the export-D95059080 branch 2 times, most recently from 5964ae1 to 082f30a Compare March 4, 2026 10:34
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:
Pull Request resolved: react#55884

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
cortinico added a commit to cortinico/react-native that referenced this pull request Mar 4, 2026
Summary:
Pull Request resolved: react#55884

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
Summary:

All 7 callers of DevSupportHttpClient are within ReactAndroid, so
there is no need to expose it as a public API. Make the class and all
its members internal.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D95059038
Summary:

The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.

Instead we can use the `setOkHttpClientFactory` to provide this same logic.

Changelog: [Internal]

Reviewed By: javache, cipolleschi

Differential Revision: D95059080
@meta-codesync meta-codesync Bot closed this in 3f46e5f Mar 4, 2026
@meta-codesync

meta-codesync Bot commented Mar 4, 2026

Copy link
Copy Markdown

This pull request has been merged in 3f46e5f.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 4, 2026
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.

2 participants