name method

String name()

Returns the HTTP method in all caps.

Implementation

String name() {
  return toString().split('.').last.toUpperCase();
}