convert idhttp to global object

Signed-off-by: tsongknows <tt931025@gmail.com>