use base from @yudai to add http/https proxy support