contentType method

void contentType(
  1. String mediaType
)

Sets content-type without setting a body.

Implementation

void contentType(String mediaType) {
  _headers['content-type'] = mediaType;
}