canHttpMethodHaveBody function

bool canHttpMethodHaveBody(
  1. HttpMethod method
)

Implementation

bool canHttpMethodHaveBody(HttpMethod method) {
  switch (method) {
    case HttpMethod.POST:
    case HttpMethod.PUT:
    case HttpMethod.PATCH:
      return true;
    default:
      return false;
  }
}