hfhbd
06/08/2026, 6:30 AMpipeline.execute?Aleksei Tirman [JB]
06/08/2026, 7:32 AMhfhbd
06/08/2026, 8:18 AMsetBody = "foo" and later setBody = "bar" multiple times, and HttpStatement.execute uses the latest body to start the pipeline.
On the server, you do have ApplicationCall, but you cannot set the body multiple times, because the server does not execute the pipeline automatically (if you forgot calling respond, you get 404) and respond executes the server pipeline immediately, so you cannot set the body twice (and only sending the latest body).
Or more general: the client api follows the message pattern that allows you to fully transform the message (HttpRequestBuilder) multiple times before sending, while the server sends the body directly.Aleksei Tirman [JB]
06/08/2026, 8:34 AMrespond() as the final step. And since a server handles many connections at once, with bodies often streamed rather than buffered, letting you replace a body afterward would mean holding the whole thing in memory, so it sends the body directly instead.