Skip to content

Remove num_headers and use status_code in responses instead.#104

Open
PiotrSikora wants to merge 1 commit into
proxy-wasm:mainfrom
PiotrSikora:num_headers
Open

Remove num_headers and use status_code in responses instead.#104
PiotrSikora wants to merge 1 commit into
proxy-wasm:mainfrom
PiotrSikora:num_headers

Conversation

@PiotrSikora
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Piotr Sikora <code@piotrsikora.dev>
@PiotrSikora PiotrSikora requested review from leonm1 and mpwarres May 21, 2026 18:18
@PiotrSikora PiotrSikora linked an issue May 21, 2026 that may be closed by this pull request
- `i32 (size_t) status_code`
- `i32 (size_t) body_size`
- `i32 (size_t) num_trailers`
- `i32 (size_t) has_trailers`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does proxy_get_header_map_pairs support "has" semantics by passing NULL for a return buffer pointer? If so, we don't need has_trailers.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of those hints is to avoid the expensive call across the host<>Wasm boundary when not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is the num_headers argument in used?

2 participants