Make RestServer transport independant