src/Request.php
public function setMime($mime)
    {
        if (!empty($mime)) {
            $this->setContentType(
                Mime::getFullMime($mime)
            );
        }

        return $this;
    }
public function setMime($mime)
    {
        if (!empty($mime)) {
            $this->setContentType(
                Mime::getFullMime($mime)
            );
        }

        return $this;
    }
public function setMime ( $ mime ) { if ( ! empty ( $ mime ) ) { $ this -> setContentType ( Mime :: getFullMime ( $ mime ) ) ; } return $ this ; }
Helper function to set the Content-Type and Expected as same in
one swoop

@return Request this

@param string $mime mime type to use for content type and expected return type
Helper function to set the Content - Type and Expected as same in one swoop