request()
request(string $method, string|\Psr\Http\Message\UriInterface $uri, array $options = []) : \Psr\Http\Message\ResponseInterface
Create and send an HTTP request.
Use an absolute path to override the base path of the client, or a relative path to append to the base path of the client. The URL can contain the query string as well.
Parameters
string | $method | HTTP method. |
string|\Psr\Http\Message\UriInterface | $uri | URI object or string. |
array | $options | Request options to apply. |
Throws
- \GuzzleHttp\Exception\GuzzleException