toHttpString method
Returns a String representation of this HttpMethod in UPPER CASE
Implementation
String toHttpString() {
switch (this) {
case HttpMethod.other:
return 'OTHER';
case HttpMethod.get:
return 'GET';
case HttpMethod.post:
return 'POST';
case HttpMethod.put:
return 'PUT';
case HttpMethod.delete:
return 'DELETE';
case HttpMethod.patch:
return 'PATCH';
}
}