proxy-wasm / spec

WebAssembly for Proxies (ABI specification)
Apache License 2.0
535 stars 28 forks source link

HTTP: add more control over buffering and/or offloading processing to the host #63

Open PiotrSikora opened 1 week ago

PiotrSikora commented 1 week ago

Currently, we only support Continue and Pause actions, which is quite limiting.

Most notably, we require forwarding HTTP headers before processing HTTP body, which prevents building plugins that perform authorization based on contents of HTTP request body or completely consume requests and generate responses from within plugin (for which proxy_send_local_response is too limited).

Refs:

jcchavezs commented 1 week ago

Another use case is to decide whether buffer or not based on headers e.g. in Coraza WAF we only want to buffer and inspect body if certain content type.