fkrauthan
02/16/2022, 12:26 AMktor-client
feature that has a sendPipeline
and a receivePipeline
intercept. How can I pass values from the sendPipeline intercept to the receivePipeline intercept (e.g. a class instance and/or some value)?Aleksei Tirman [JB]
02/16/2022, 6:32 AMval keyForObject = AttributeKey<MyData>("")
client.sendPipeline.intercept(HttpSendPipeline.Before) {
context.attributes.put(keyForObject, MyData())
}
client.receivePipeline.intercept(HttpReceivePipeline.State) {
println(context.attributes[keyForObject])
}
fkrauthan
02/16/2022, 5:50 PMAleksei Tirman [JB]
02/16/2022, 5:59 PMfkrauthan
02/16/2022, 6:35 PM