Commit 59b8886
Add request interceptor API to RCTMultipartDataTask (#55916)
Summary:
Pull Request resolved: #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: 7752b2ee44ee9d4db574a9866661e1a717b75bed1 parent 77231f4 commit 59b8886
2 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
46 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
47 | 59 | | |
48 | 60 | | |
49 | 61 | | |
| |||
0 commit comments