I need to send out requests with my http json rpc client. Each request will likely have a different set of headers.
Unfortunately I don't think the [rpc(client)] macro exposes any way to create a raw http request that I can add headers to.
My guess here is that the only workaround is to create a new HttpClient with custom headers for each outgoing request, which doesn't seem particularly efficient. Let me know if I'm missing something!
I need to send out requests with my http json rpc client. Each request will likely have a different set of headers.
Unfortunately I don't think the
[rpc(client)]macro exposes any way to create a raw http request that I can add headers to.My guess here is that the only workaround is to create a new HttpClient with custom headers for each outgoing request, which doesn't seem particularly efficient. Let me know if I'm missing something!