joney
09/16/2022, 9:33 AMContentNegotiation
plugin:
I need access to the serialised body (as TextContent
) in order to calculate a header value: The api I’m using expects a signature header which needs the body content for calculating the signature value 🙃.
Snipped of what I’m trying to do in HttpRequestPipeline.Send
phase: private val HttpRequestBuilder.bodyAsText get() = (body as? TextContent)?.text
(Prior to send the body is not available as text)
Problem: I cannot set headers anymore after the body had been serialised, is that correct? Do you know a workaround?August Lilleaas
09/16/2022, 11:57 AMAugust Lilleaas
09/16/2022, 12:04 PMjoney
09/16/2022, 4:28 PM