headSent function
true when the head of res already went out (a flush or a streamed
body). Then the status and headers are fixed and the body is running.
Needs a native server that has NativeResponse.headSent.
Implementation
bool headSent(HttpResponse res) => res is NativeResponse && res.headSent;