DRYing up http methods