improve http_stream