Move http out to its own method