getHttpRequestMethod method

String getHttpRequestMethod()

Implementation

String getHttpRequestMethod() {
  var method = "get";
  switch (_httpRequestMethod) {
    case HttpRequestMethod.delete:
      method="delete";
      break;
    case HttpRequestMethod.put:
      method="put";
      break;
    case HttpRequestMethod.post:
      method="post";
      break;
    case HttpRequestMethod.patch:
      method="patch";
      break;
    case HttpRequestMethod.get:
      method="get";
      break;
    case HttpRequestMethod.download:
      method="download";
      break;
  }
  return method;
}