Change the HTTP upgrade API to make it more intuitive