headSent function

bool headSent(
  1. HttpResponse res
)

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;