Fully Qualified Name: | Zend\Http\Client\Adapter\AdapterInterface |
An interface description for Zend\Http\Client\Adapter classes.
These classes are used as connectors for Zend\Http\Client, performing the tasks of connecting, writing, reading and closing connection to the server.
Name | Description | Defined By |
---|---|---|
close() | Close the connection to the server | AdapterInterface |
connect() | Connect to the remote server | AdapterInterface |
read() | Read response from server | AdapterInterface |
setOptions() | Set the configuration array for the adapter | AdapterInterface |
write() | Send request to the remote server | AdapterInterface |
Close the connection to the server
Returns:
Connect to the remote server
Parameter Name | Type | Description |
---|---|---|
$host | string | |
$port | int | |
$secure | bool |
Returns:
Read response from server
Returns: string
Set the configuration array for the adapter
Parameter Name | Type | Description |
---|---|---|
$options | array |
Returns:
Send request to the remote server
Parameter Name | Type | Description |
---|---|---|
$method | string | |
$url | \Zend\Uri\Uri | |
$httpVer | string | |
$headers | array | |
$body | string |
Returns: string Request as text