implements net.httpclient.* without tests