Refactor http-related methods in Airplay::Connection