setContentTypeString method

void setContentTypeString(
  1. String contentType
)

Sets the Content-Type header from a string.

Implementation

void setContentTypeString(String contentType) {
  _response.headers.contentType = ContentType.parse(contentType);
}