https://kotlinlang.org logo
#ktor
Title
# ktor
t

Thomas

11/20/2019, 8:52 PM
How can you read the response in the
scope.receivePipeline.intercept
lambda without closing the original, so the pipeline can continue as normal?
Unfortunately I can not split the response and set it again on the
context
, just like
ResponseObserver
, because the
context.response
setter is internal. https://github.com/ktorio/ktor/blob/00369bf3e41e91d366279fce57b8f4c97f927fd4/ktor-client/ktor-client-core/src/io/ktor/client/features/observer/ResponseObserver.kt#L47
28 Views