gateway warpper for net-http and net-http-pipeline