contentTypeWithRequestBody method
Implementation
String? contentTypeWithRequestBody(String method) {
if (setRequestContentTypeWhenNoPayload) {
return contentType;
} else {
return _allowPayloadMethods.contains(method) ? contentType : null;
}
}