Trouble Adding Headers to a Streaming RPC HTTP Client in Effect-TS

I'm having some trouble with adding headers to a streaming RPC HTTP client. I've created a server/client pair per the RPC docs (https://github.com/Effect-TS/effect/tree/main/packages/rpc#stream). I then added an Authorization header per the method described in the HTTP client docs (https://github.com/Effect-TS/effect/tree/main/packages/platform#requestinit-options). However the header doesn't seem to be getting added to the request. Am I missing something or am I just taking the wrong approach to authenticating a streaming RPC request?

Here's a basic reproduction:
https://github.com/chrislambe/rpc-http-client-missing-headers
Was this page helpful?