proxy-wasm-rust-sdk icon indicating copy to clipboard operation
proxy-wasm-rust-sdk copied to clipboard

`hostcalls::dispatch_http_call` doesn't allow to use a header value that is not a valid UTF-8 string

Open yskopets opened this issue 4 years ago • 0 comments

Summary

  • HTTP spec allows arbitrary octets in header values
  • However, Rust SDK is using &str type that is limited to UTF-8 strings only
  • It is not possible to use hostcalls::dispatch_http_call to forward request headers, e.g. to ext_authz service

yskopets avatar Aug 10 '20 22:08 yskopets