Add http useful functions