public function mime($mime)
    {
        if (empty($mime)) return $this;
        $this->content_type = $this->expected_type = Mime::getFullMime($mime);
        if ($this->isUpload()) {
            $this->neverSerializePayload();
        }
        return $this;
    }
public function mime($mime)
    {
        if (empty($mime)) return $this;
        $this->content_type = $this->expected_type = Mime::getFullMime($mime);
        if ($this->isUpload()) {
            $this->neverSerializePayload();
        }
        return $this;
    }
public function mime ( $ mime ) { if ( empty ( $ mime ) ) return $ this ; $ this -> content_type = $ this -> expected_type = Mime :: getFullMime ( $ mime ) ; if ( $ this -> isUpload ( ) ) { $ this -> neverSerializePayload ( ) ; } return $ this ; }
Helper function to set the Content type and Expected as same in
one swoop
@param string $mime mime type to use for content type and expected return type
@return Request
Helper function to set the Content type and Expected as same in one swoop