streamPost

fun streamPost(path: String, body: String): Flow<String>

Sends a streaming POST request, emitting response lines as they arrive.

Lines are trimmed and emitted individually. Empty lines are skipped.

Return

A Flow of trimmed response lines.

Parameters

path

The URL path (appended to the base URL).

body

The request body as a string.

Throws

if the response status is not 2xx.