Skip to main content Link Menu Expand (external link) Document Search Copy Copied

This is automatic generated document for things in Swow\Psr7\Client\Client class

Class Client

Constants

public DEFAULT_HTTP_PARSER_EVENTS = null

Properties

protected $host

Methods

Method __construct

public function __construct ( int $type )

Method connect

public function connect ( string $name , int $port , ?int $timeout ) : static

Method convertToClientException

protected function convertToClientException ( Exception $exception , RequestInterface $request ) : ClientExceptionInterface

Method recvResponseEntity

public function recvResponseEntity ( ?int $timeout ) : ResponseEntity

Method sendPackedRequestAsync

public function sendPackedRequestAsync ( string $method , string $uri , array<string, array<string>> $headers , string $body , string $protocolVersion ) : static

Method sendRequest

public function sendRequest ( RequestInterface $request , ?int $timeout ) : ResponseInterface

Method upgradeToWebSocket

public function upgradeToWebSocket ( RequestInterface $request ) : ResponseInterface

Copyright 2022 the Swow contributors