I am implementing a Grpc server in Elixir and have some questions about headers. I believe I can retrieve the headers from the stream data in the request implementation. This looks straight-forward. I have not been able to find a way to send headers using the Stub client. I am planning on having the client send per request auth header and would like to use the Stub client for testing the server implementation, but can’t figure out how to pass headers.
Looks like the the stub has a way to pass headers. This does not appear to be documented. Had to do a bit of spelunking in the code.