Change http to resource