link with thread support
add null pointer detect
把解析http的代码加进去。