Duplex API for making an HTTP request (write the req, read the response)