transHttpMethod function

String transHttpMethod(
  1. HttpMethod method
)

Implementation

String transHttpMethod(HttpMethod method) {
  switch (method) {
    case HttpMethod.httpMethodGet:
      return 'GET';
    case HttpMethod.httpMethodHead:
      return 'HEAD';
    case HttpMethod.httpMethodPut:
      return 'PUT';
    case HttpMethod.httpMethodPost:
      return 'POST';
    case HttpMethod.httpMethodDelete:
      return 'DELETE';
  }
}