- Notifications
You must be signed in to change notification settings - Fork1.5k
Commit3715b90
Add custom header support to H3DatagramClient
Summary: The H3DatagramClient sample binary hardcodes its HTTP request with no way to pass custom headers. This is needed for use with Meta's forward proxy, which requires X-FB-Proxy, X-FB-ProxyScheme, and X-FB-ProxyType headers. This change adds a --headers gflag that accepts comma-separated Name=Value pairs, reusing the existing CurlClient::parseHeaders() utility already used by the curl and hq samples.Reviewed By: jalopezsilvaDifferential Revision: D93680181fbshipit-source-id: 7f1600646e3d2bae638bddea049919f69964099e1 parentbd79c0b commit3715b90
File tree
2 files changed
+16
-1
lines changed- proxygen/httpclient/samples/H3Datagram
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
162 | 171 | | |
163 | 172 | | |
164 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
165 | 179 | | |
166 | 180 | | |
167 | 181 | | |
| |||
0 commit comments
Comments
(0)