improve avhttp, add missing header file

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