setContentType method

void setContentType(
  1. ContentType contentType
)

Sets the Content-Type header.

Implementation

void setContentType(ContentType contentType) {
  _response.headers.contentType = contentType;
}