if i use OkHttp as my client, does it matter if i put my headers in the OkHttpConfig or in the defaultRequest {} block?
h
hfhbd
08/28/2025, 6:04 AM
If you put it in the engine config (OkHttpConfig), you can't read/handle the header in Ktor plugins (the header is added at the very end of the request pipeline). Better to put them into the defaultRequest block.