Commit f734f38
committed
🐍 Make proxy/mock streams behave similarly
Now when streaming proxy responses the following happens in order;
0. Send status code
1. Iterate and send headers, if any
2. Close headers, if any
3. Iterate and send body lines, if any
This is different in that instead of attempting to re-send headers for
every line of response body, so _should_ be a little faster for Vim as
the channel callback will now not need to re-parse repeated headers.
Oh and this commit will be tracked by the next patch tagged version!1 parent 0782274 commit f734f38
2 files changed
+29
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
138 | 147 | | |
139 | 148 | | |
140 | 149 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| |||
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
297 | 313 | | |
298 | 314 | | |
299 | 315 | | |
300 | 316 | | |
301 | 317 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 318 | | |
312 | 319 | | |
313 | 320 | | |
| |||
0 commit comments