toValue method
Implementation
String toValue() {
switch (this) {
case HttpMethod.get:
return 'GET';
case HttpMethod.head:
return 'HEAD';
case HttpMethod.post:
return 'POST';
case HttpMethod.put:
return 'PUT';
case HttpMethod.delete:
return 'DELETE';
case HttpMethod.connect:
return 'CONNECT';
case HttpMethod.options:
return 'OPTIONS';
case HttpMethod.trace:
return 'TRACE';
case HttpMethod.patch:
return 'PATCH';
}
}