WordPress\AiClient\Providers\Http\Contracts

ClientWithOptionsInterface::sendRequestWithOptions │ public │ WP 0.2.0

Sends an HTTP request with the given transport options.

Метод класса: ClientWithOptionsInterface{}

Хуков нет.

Возвращает

ResponseInterface. The PSR-7 response received.

Использование

$ClientWithOptionsInterface = new ClientWithOptionsInterface();
$ClientWithOptionsInterface->sendRequestWithOptions( $request, $options ): ResponseInterface;
$request(RequestInterface) (обязательный)
The PSR-7 request to send.
$options(RequestOptions) (обязательный)
The request transport options. Must not be null.

Список изменений

С версии 0.2.0 Введена.

Код ClientWithOptionsInterface::sendRequestWithOptions() WP 7.1.2

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