public setEncType ( string $enctype = self::ENC_URLENCODED ) : Zend_Http_Client | ||
$enctype | string | |
Результат | Zend_Http_Client |
public function setEncType($enctype = self::ENC_URLENCODED)
{
$this->enctype = $enctype;
return $this;
}
public function setupHttpClient(Zend_Http_Client $httpClient) { if (is_string($this->_currentContentType)) { $httpClient->setEncType($this->_currentContentType); } elseif (isset($this->getRestMethod()->contentType) && is_string($this->getRestMethod()->contentType)) { $httpClient->setEncType($this->getRestMethod()->contentType); } elseif ($this->getDefaultContentType()) { $httpClient->setEncType($this->getDefaultContentType()); } }