setContentType method

void setContentType({
  1. HeaderContentType type = HeaderContentType.applicationJson,
})

Implementation

void setContentType({
  HeaderContentType type = HeaderContentType.applicationJson,
}) {
  _header['Content-Type'] = type.value;
}