Made http wrapper into a module