Copied!

Client interface for sending HTTP requests.

Abstract Trait
Methods
public delete ( $uri , array $options = [ ] ) : Psr\Http\Message\ResponseInterface
 

Create and send an HTTP DELETE 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.

  • throws GuzzleException
public deleteAsync ( $uri , array $options = [ ] ) : GuzzleHttp\Promise\PromiseInterface
 

Create and send an asynchronous HTTP DELETE 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. Use an array to provide a URL
template and additional variables to use in the URL template expansion.

public get ( $uri , array $options = [ ] ) : Psr\Http\Message\ResponseInterface
 

Create and send an HTTP GET 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.

  • throws GuzzleException
public getAsync ( $uri , array $options = [ ] ) : GuzzleHttp\Promise\PromiseInterface
 

Create and send an asynchronous HTTP GET 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. Use an array to provide a URL
template and additional variables to use in the URL template expansion.

public head ( $uri , array $options = [ ] ) : Psr\Http\Message\ResponseInterface
 

Create and send an HTTP HEAD 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.

  • throws GuzzleException
public headAsync ( $uri , array $options = [ ] ) : GuzzleHttp\Promise\PromiseInterface
 

Create and send an asynchronous HTTP HEAD 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. Use an array to provide a URL
template and additional variables to use in the URL template expansion.

public patch ( $uri , array $options = [ ] ) : Psr\Http\Message\ResponseInterface
 

Create and send an HTTP PATCH 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.

  • throws GuzzleException
public patchAsync ( $uri , array $options = [ ] ) : GuzzleHttp\Promise\PromiseInterface
 

Create and send an asynchronous HTTP PATCH 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. Use an array to provide a URL
template and additional variables to use in the URL template expansion.

public post ( $uri , array $options = [ ] ) : Psr\Http\Message\ResponseInterface
 

Create and send an HTTP POST 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.

  • throws GuzzleException
public postAsync ( $uri , array $options = [ ] ) : GuzzleHttp\Promise\PromiseInterface
 

Create and send an asynchronous HTTP POST 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. Use an array to provide a URL
template and additional variables to use in the URL template expansion.

public put ( $uri , array $options = [ ] ) : Psr\Http\Message\ResponseInterface
 

Create and send an HTTP PUT 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.

  • throws GuzzleException
public putAsync ( $uri , array $options = [ ] ) : GuzzleHttp\Promise\PromiseInterface
 

Create and send an asynchronous HTTP PUT 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. Use an array to provide a URL
template and additional variables to use in the URL template expansion.

public abstract request ( string $method , $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.

  • throws GuzzleException
public abstract requestAsync ( string $method , $uri , array $options = [ ] ) : GuzzleHttp\Promise\PromiseInterface
 

Create and send an asynchronous 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. Use an array to provide a URL
template and additional variables to use in the URL template expansion.

© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration