implement sync http_stream

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