|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| setConfig ($config=array()) | |
| connect ($host, $port=80, $secure=false) | |
| write ($method, $url, $http_ver='1.1', $headers=array(), $body='') | |
| read () | |
| close () | |
Definition at line 36 of file Interface.php.
| close | ( | ) |
Close the connection to the server
Implemented in Zend_Http_Client_Adapter_Curl, Zend_Http_Client_Adapter_Socket, Zend_Http_Client_Adapter_Proxy, Curl, and Zend_Http_Client_Adapter_Test.
| connect | ( | $host, | |
$port = 80, |
|||
$secure = false |
|||
| ) |
Connect to the remote server
| string | $host | |
| int | $port | |
| boolean | $secure |
Implemented in Zend_Http_Client_Adapter_Curl, Zend_Http_Client_Adapter_Socket, Curl, Zend_Http_Client_Adapter_Test, and Zend_Http_Client_Adapter_Proxy.
| read | ( | ) |
Read response from server
Implemented in Zend_Http_Client_Adapter_Curl, Zend_Http_Client_Adapter_Socket, Curl, and Zend_Http_Client_Adapter_Test.
| setConfig | ( | $config = array() | ) |
Set the configuration array for the adapter
| array | $config |
Implemented in Zend_Http_Client_Adapter_Curl, Curl, Zend_Http_Client_Adapter_Socket, and Zend_Http_Client_Adapter_Test.
| write | ( | $method, | |
| $url, | |||
$http_ver = '1.1', |
|||
$headers = array(), |
|||
$body = '' |
|||
| ) |
Send request to the remote server
| string | $method | |
| Zend_Uri_Http | $url | |
| string | $http_ver | |
| array | $headers | |
| string | $body |
Implemented in Zend_Http_Client_Adapter_Curl, Zend_Http_Client_Adapter_Socket, Curl, Zend_Http_Client_Adapter_Test, and Zend_Http_Client_Adapter_Proxy.