I need to add a header to requests based on the body. How can I add interceptor for client requests? I have tried
httpClient.requestPipeline.intercept(HttpRequestPipeline.Send) { context: PipelineContext<Any, HttpRequestBuilder> ->
context.proceed()
}
But it wasn't called