Refactored HTTP Method setting