improve http_stream implementation, fixed some warnings.

Signed-off-by: Jack <jack.wgm@gmail.com>
fixed member initialize order.

Signed-off-by: Jack <jack.wgm@gmail.com>
fix some warnings.

Signed-off-by: Jack <jack.wgm@gmail.com>