HttpClient
extends
ClientInterface
in
since version 2.4, use Psr\Http\Client\ClientInterface instead; see https://www.php-fig.org/psr/psr-18/
Provide the Httplug HttpClient interface for BC. You should typehint Psr\Http\Client\ClientInterface in new code
Table of Contents
Methods
- sendRequest() : ResponseInterface
- Sends a PSR-7 request and returns a PSR-7 response.
Methods
sendRequest()
Sends a PSR-7 request and returns a PSR-7 response.
public
sendRequest(RequestInterface $request) : ResponseInterface
Parameters
- $request : RequestInterface