SocketTransport
class SocketTransport extends AbstractTransport implements TransportInterface
HTTP transport class for using sockets directly.
Properties
protected array
Since: 1.7.3
|
$connections |
Methods
request(string $method, UriInterface $uri, mixed $data = null, array $headers = [], int $timeout = null, string $userAgent = null)
Send a request to the server and return a Response object with the response.
getResponse(string $content)
Method to get a response object from a server response.
resource
connect(UriInterface $uri, int $timeout = null)
Method to connect to a server and get the resource.
static bool
isSupported()
Method to check if http transport socket available for use
Details
Response
request(string $method, UriInterface $uri, mixed $data = null, array $headers = [], int $timeout = null, string $userAgent = null)
Since: 1.7.3
Send a request to the server and return a Response object with the response.
protected Response
getResponse(string $content)
Since: 1.7.3
Method to get a response object from a server response.