proxy-wasm / spec

WebAssembly for Proxies (ABI specification)
Apache License 2.0
544 stars 27 forks source link

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

Open PiotrSikora opened 1 month ago

PiotrSikora commented 1 month 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 month 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.