Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Elastica
Connection
setProxy
Elastica\Connection::setProxy PHP Method
Connection Class Documentation
Datei anzeigen
Open project: ruflin/elastica
setProxy()
public
method
Set proxy for http connections. Null is for environmental proxy, empty string to disable proxy and proxy string to set actual http proxy.
See also:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXY
public
setProxy
(
string
|
null
$proxy
)
$proxy
string
|
null
public function setProxy($proxy) { return $this->setParam('proxy', $proxy); }
Connection
__construct
addConfig
create
getConfig
getConnectTimeout
getHost
getPassword
getPath
getPort
getProxy
getTimeout
getTransport
getTransportObject
getUsername
hasCompression
hasConfig
isEnabled
isPersistent
setCompression
setConfig
setConnectTimeout
setEnabled
setHost
setPath
setPort
setProxy
setTimeout
setTransport