Pablo
04/13/2021, 6:44 PMbuildHeaders { append("foo","bar" }
but looks like is not working if I add them in the request
it works...
it's weird.
httpClient.get<FooResponse>("<https://foo.bar>"){header("foo","bar")} <-- it works
Any idea why?Dominaezzz
04/13/2021, 6:58 PMDominaezzz
04/13/2021, 6:58 PMdefaultRequest
could probably do it.okarm
04/13/2021, 7:02 PMokarm
04/13/2021, 7:03 PMokarm
04/13/2021, 7:06 PMHttpRequestBuilder.header()
function appends the value if the header is already set.
https://youtrack.jetbrains.com/issue/KTOR-2492Pablo
04/13/2021, 7:44 PMPablo
04/13/2021, 7:44 PMPablo
04/14/2021, 4:22 PMengine {
val loggingInterceptor = HttpLoggingInterceptor()
loggingInterceptor.level = HttpLoggingInterceptor.Level.BASIC
addInterceptor(loggingInterceptor)
}
I've tried to use Level.HEADERS but don't see them