Setting Default Headers for HttpClient Requests

Is there a convenient way to provide a few default headers to an HttpClient instance that are reused across requests? At the moment I am doing something like this:
const headers = yield* Effect.tryPromise(buildHeaders) // Calling non-effect code
const response = yield* httpClient.get('...', { headers })
Was this page helpful?