function ClientTrait::request
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|UriInterface $uri URI object or string.:
array $options Request options to apply.:
Throws
6 calls to ClientTrait::request()
- ClientTrait::delete in vendor/
guzzlehttp/ guzzle/ src/ ClientTrait.php - Create and send an HTTP DELETE request.
- ClientTrait::get in vendor/
guzzlehttp/ guzzle/ src/ ClientTrait.php - Create and send an HTTP GET request.
- ClientTrait::head in vendor/
guzzlehttp/ guzzle/ src/ ClientTrait.php - Create and send an HTTP HEAD request.
- ClientTrait::patch in vendor/
guzzlehttp/ guzzle/ src/ ClientTrait.php - Create and send an HTTP PATCH request.
- ClientTrait::post in vendor/
guzzlehttp/ guzzle/ src/ ClientTrait.php - Create and send an HTTP POST request.
1 method overrides ClientTrait::request()
- Client::request in vendor/
guzzlehttp/ guzzle/ src/ Client.php - Create and send an HTTP request.
File
-
vendor/
guzzlehttp/ guzzle/ src/ ClientTrait.php, line 28
Class
- ClientTrait
- Client interface for sending HTTP requests.
Namespace
GuzzleHttpCode
public abstract function request(string $method, $uri, array $options = []) : ResponseInterface;