Effect CommunityEC
Effect Community11mo ago
3 replies
lambeco

Trouble Adding Headers to Streaming RPC HTTP Client in Effect Typescript Library

Reposting this here since it's probably more suitable than effect-beginners-🚀:

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?

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