Commit 6d11931
authored
dynamic modules: enhanced ABI to support header addition and body size retrieval (#41908)
Commit Message: dynamic modules: enhanced ABI to support header addition
and body size retrieval
Additional Description:
1. New ABI to support header addition. By this way users could append
header value rather than only overwrite.
2. New ABI to get body size without read the body content.
3. naming change: body_vector -> body_chunks
4. Updated the get_header and get_headers ABI to use return value as
status and parameter as output.
5. All the structs and enums types have a name. This is necessary for
CGO to identify it correctly.
Risk Level: low.
Testing: unit/integration.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.
---------
Signed-off-by: wbpcode <[email protected]>1 parent aca529f commit 6d11931
File tree
29 files changed
+1156
-387
lines changed- changelogs
- source/extensions
- dynamic_modules
- sdk/rust
- src
- filters/http/dynamic_modules
- test/extensions/dynamic_modules
- http
- test_data
- c
- rust
29 files changed
+1156
-387
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Large diffs are not rendered by default.
Lines changed: 164 additions & 53 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments