solo-io / proxy-runtime

Apache License 2.0
86 stars 25 forks source link

request header can't be retrieved from onResponseHeaders #43

Closed amiramw closed 3 years ago

amiramw commented 3 years ago

When calling stream_context.headers.request.get(<key>) from onResponseHeaders the returned header value is empty. The same API works fine when called from onRequestHeaders.

Is it intentional or a bug?

yuval-k commented 3 years ago

it is intentional. you cannot get request headers once they are sent upstream. i.e. this is in the abi level (will behave the same in other SDKs)