![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/laminas/laminas-http/src/Client/Adapter/ |
<?php namespace Laminas\Http\Client\Adapter; use Laminas\Uri\Uri; /** * An interface description for Laminas\Http\Client\Adapter classes. * * These classes are used as connectors for Laminas\Http\Client, performing the * tasks of connecting, writing, reading and closing connection to the server. */ interface AdapterInterface { /** * Set the configuration array for the adapter * * @param array $options */ public function setOptions($options = []); /** * Connect to the remote server * * @param string $host * @param int $port * @param bool $secure */ public function connect($host, $port = 80, $secure = false); /** * Send request to the remote server * * @param string $method * @param Uri $url * @param string $httpVer * @param array $headers * @param string $body * @return string Request as text */ public function write($method, $url, $httpVer = '1.1', $headers = [], $body = ''); /** * Read response from server * * @return string */ public function read(); /** * Close the connection to the server */ public function close(); }