HttpClientInterface
interface HttpClientInterface (View source)
Interface HttpClientInterface
Methods
ResponseInterface
request(string $method, string|object $url, mixed $data = null, array $headers)
Request a remote server.
ResponseInterface
send(RequestInterface $request)
Send a request to remote.
Details
at line line 33
ResponseInterface
request(string $method, string|object $url, mixed $data = null, array $headers)
Request a remote server.
This method will build a Request object and use send() method to send request.
at line line 42
ResponseInterface
send(RequestInterface $request)
Send a request to remote.