make send_psgi_headers method public, we we can use it in streaming callback