Effect CommunityEC
Effect Community10mo ago
9 replies
David Golightly

Setting default headers for all requests in HttpApiClient

I'd like to specify the same headers for all requests to a given HttpApiClient instance, rather than specifying them at each call site. What's the best way to do this? Middlewares come to mind, but I'm wondering if there's a more elegant way to inject them.
Was this page helpful?