Flush the response after writing the headers.
Optimize imports.
Merge branch 'flush-headers'

* flush-headers:
  Optimize imports.
  Flush the response after writing the headers.