WordPress\AiClient\Providers\Http\Contracts

HttpTransporterInterface::sendpublicWP 0.1.0

Sends an HTTP request and returns the response.

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

Хуков нет.

Возвращает

Response. The response received.

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

$HttpTransporterInterface = new HttpTransporterInterface();
$HttpTransporterInterface->send( $request, ?RequestOptions $options ): Response;
$request(Request) (обязательный)
The request to send.
?RequestOptions $options
.
По умолчанию: null

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

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

Код HttpTransporterInterface::send() WP 7.0

public function send(Request $request, ?RequestOptions $options = null): Response;