if i use OkHttp as my client, does it matter if i ...
# ktor
j
if i use OkHttp as my client, does it matter if i put my headers in the OkHttpConfig or in the defaultRequest {} block?
h
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.
👍 1
👍🏾 1