, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @throws GuzzleException */ abstract public function request(string $method, $uri, array $options = []): 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{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @throws GuzzleException */ public function get( $uri, #[\SensitiveParameter] array $options = [] ): ResponseInterface { return $this->request('GET', $uri, $options); } /** * 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{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @throws GuzzleException */ public function head( $uri, #[\SensitiveParameter] array $options = [] ): ResponseInterface { return $this->request('HEAD', $uri, $options); } /** * 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{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @throws GuzzleException */ public function put( $uri, #[\SensitiveParameter] array $options = [] ): ResponseInterface { return $this->request('PUT', $uri, $options); } /** * 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{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @throws GuzzleException */ public function post( $uri, #[\SensitiveParameter] array $options = [] ): ResponseInterface { return $this->request('POST', $uri, $options); } /** * 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{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @throws GuzzleException */ public function patch( $uri, #[\SensitiveParameter] array $options = [] ): ResponseInterface { return $this->request('PATCH', $uri, $options); } /** * 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{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @throws GuzzleException */ public function delete( $uri, #[\SensitiveParameter] array $options = [] ): ResponseInterface { return $this->request('DELETE', $uri, $options); } /** * 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. * * @param string $method HTTP method * @param string|UriInterface $uri URI object or string. * @param array{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @return PromiseInterface */ abstract public function requestAsync(string $method, $uri, array $options = []): 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. * * @param string|UriInterface $uri URI object or string. * @param array{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @return PromiseInterface */ public function getAsync( $uri, #[\SensitiveParameter] array $options = [] ): PromiseInterface { return $this->requestAsync('GET', $uri, $options); } /** * 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. * * @param string|UriInterface $uri URI object or string. * @param array{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @return PromiseInterface */ public function headAsync( $uri, #[\SensitiveParameter] array $options = [] ): PromiseInterface { return $this->requestAsync('HEAD', $uri, $options); } /** * 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. * * @param string|UriInterface $uri URI object or string. * @param array{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @return PromiseInterface */ public function putAsync( $uri, #[\SensitiveParameter] array $options = [] ): PromiseInterface { return $this->requestAsync('PUT', $uri, $options); } /** * 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. * * @param string|UriInterface $uri URI object or string. * @param array{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @return PromiseInterface */ public function postAsync( $uri, #[\SensitiveParameter] array $options = [] ): PromiseInterface { return $this->requestAsync('POST', $uri, $options); } /** * 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. * * @param string|UriInterface $uri URI object or string. * @param array{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @return PromiseInterface */ public function patchAsync( $uri, #[\SensitiveParameter] array $options = [] ): PromiseInterface { return $this->requestAsync('PATCH', $uri, $options); } /** * 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. * * @param string|UriInterface $uri URI object or string. * @param array{ * base_uri?: string|UriInterface, * allow_redirects?: bool|array{ * max?: int, * strict?: bool, * referer?: bool, * protocols?: non-empty-array, * on_redirect?: callable(RequestInterface, ResponseInterface, UriInterface): mixed, * track_redirects?: bool * }, * auth?: array{ * 0: string, * 1: string, * 2?: string|null * }|string|false|null, * body?: resource|string|null|StreamInterface|(callable&object)|\Iterator|\Stringable, * cert?: string|array{ * 0: string, * 1?: string|null * }, * cert_type?: string, * connect_timeout?: int|float, * cookies?: false|CookieJarInterface, * crypto_method?: int, * crypto_method_max?: int, * debug?: bool|resource, * decode_content?: bool|string, * delay?: int|float, * expect?: bool|int, * form_params?: array, * force_ip_resolve?: string, * headers?: array>|null, * http_errors?: bool, * idn_conversion?: bool|int|null, * json?: mixed, * multipart?: array, * filename?: string * }>, * multiplex?: string, * on_headers?: callable(ResponseInterface, RequestInterface): mixed, * on_stats?: callable(TransferStats): mixed, * on_trailers?: callable(array>, ResponseInterface, RequestInterface): mixed, * progress?: callable(int, int, int, int): mixed, * protocols?: non-empty-array, * proxy?: string|array{ * http?: string|null, * https?: string|null, * no?: string|array|null * }, * query?: array|string, * read_timeout?: int|float, * retries?: int, * request_factory?: RequestFactoryInterface, * response_factory?: ResponseFactoryInterface, * sink?: resource|string|StreamInterface, * ssl_key?: string|array{ * 0: string, * 1?: string|null * }, * ssl_key_type?: string, * stream?: bool, * stream_factory?: StreamFactoryInterface, * stream_context?: array, * synchronous?: bool, * timeout?: int|float, * uri_factory?: UriFactoryInterface, * verify?: bool|string, * version?: string|int|float, * curl?: array, * ... * } $options Request options to apply. * * @return PromiseInterface */ public function deleteAsync( $uri, #[\SensitiveParameter] array $options = [] ): PromiseInterface { return $this->requestAsync('DELETE', $uri, $options); } }