code: public function getContentType()
      {
          if (!$this->contentType) {
              $this->setContentType($this->getParam('contentType') ?: static::TYPE_JSON);
          }
  
          return $this->contentType;
      }
docs: Get the content type.
  
  @return string