WordPress\AiClient\Providers\Http\Contracts
HttpTransporterInterface{}
Interface for HTTP transport implementations.
Handles sending HTTP requests and receiving responses using PSR-7, PSR-17, and PSR-18 standards internally.
Хуков нет.
Использование
$HttpTransporterInterface = new HttpTransporterInterface(); // use class methods
Методы
Список изменений
| С версии 0.1.0 | Введена. |
Код HttpTransporterInterface{} HttpTransporterInterface{} WP 7.0
interface HttpTransporterInterface
{
/**
* Sends an HTTP request and returns the response.
*
* @since 0.1.0
*
* @param Request $request The request to send.
* @param RequestOptions|null $options Optional transport options for the request.
* @return Response The response received.
*/
public function send(Request $request, ?RequestOptions $options = null): Response;
}