(http): add response function, migrate header + type enums to classes