Attach http classes to model class