updateContentType method

void updateContentType(
  1. MediaType? contentType
)
inherited

Set the content-type of this request. Used to update the charset parameter when the encoding changes.

Implementation

void updateContentType(MediaType? contentType) {
  _contentType = contentType;
}