SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Add request interceptor API to RCTMultipartDataTask (#55916)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55916

## Summary:
Replace the hardcoded `RCTDevSupportHttpHeaders` integration in `RCTMultipartDataTask` with a generic request interceptor API. This allows consumers to register a block via `RCTSetCustomMultipartDataTaskRequestInterceptor` that can inspect and modify multipart data task requests before they are sent, without coupling `RCTMultipartDataTask` to any specific header injection mechanism.

## Changelog:
[IOS][ADDED] - Add `RCTSetCustomMultipartDataTaskRequestInterceptor` API to allow custom modification of multipart data task requests before they are sent

Reviewed By: cortinico

Differential Revision: D95219954

fbshipit-source-id: 7752b2ee44ee9d4db574a9866661e1a717b75bed
R
Riccardo Cipolleschi committed
59b8886bb85f3c4c4b4ef55536d8ffeb4e5b3102
Parent: 77231f4
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/4/2026, 8:57:26 PM