Add http upgrade support