StringMethod extension

Extension method to convert a string to a Method

This extension method can be used to convert a string to a Method

Example:

Method method = 'post'.toMethod();
on

Methods

toHttpMethod() HttpMethod
This method is used to convert a string to a Method