WordPress\AiClient\Providers\Http\Contracts

ClientWithOptionsInterface::sendRequestWithOptionspublicWP 0.2.0

Sends an HTTP request with the given transport options.

Method of the class: ClientWithOptionsInterface{}

No Hooks.

Returns

ResponseInterface. The PSR-7 response received.

Usage

$ClientWithOptionsInterface = new ClientWithOptionsInterface();
$ClientWithOptionsInterface->sendRequestWithOptions( $request, $options ): ResponseInterface;
$request(RequestInterface) (required)
The PSR-7 request to send.
$options(RequestOptions) (required)
The request transport options. Must not be null.

Changelog

Since 0.2.0 Introduced.

ClientWithOptionsInterface::sendRequestWithOptions() code WP 7.0

public function sendRequestWithOptions(RequestInterface $request, RequestOptions $options): ResponseInterface;