setContentType method

void setContentType(
  1. String type
)

set Content-Type

Implementation

void setContentType(String type) {
  policy['conditions'].push(['eq', r'$Content-Type', type]);
  formData['Content-Type'] = type;
}