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