Copied!

Client interface for sending HTTP requests.

AbstractTrait
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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
  • 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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
  • 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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
  • 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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
  • 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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
  • 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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
  • 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.

  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
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.

  • param string $method HTTP method.
  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
  • 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.

  • param string $method HTTP method
  • param string|\UriInterface $uri URI object or string.
  • param array $options Request options to apply.
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration