CoreFiles by mySites.guru
HttpTransporterInterface.php29 lines, 860 bytes, from wordpress-7.1.2.zip
Raw History Compare with 7.1.1
md5
4f5dd2a13af448df3baaf735962bfb35
sha1
650a3cf1a8188e4851333564c7519c4fe7c39599
sha256
47f9aeddbf50f690622232df3bb32bedaafe4e53022421b6cf73f139ad128070
<?php

declare (strict_types=1);
namespace WordPress\AiClient\Providers\Http\Contracts;

use WordPress\AiClient\Providers\Http\DTO\Request;
use WordPress\AiClient\Providers\Http\DTO\RequestOptions;
use WordPress\AiClient\Providers\Http\DTO\Response;
/**
 * Interface for HTTP transport implementations.
 *
 * Handles sending HTTP requests and receiving responses using
 * PSR-7, PSR-17, and PSR-18 standards internally.
 *
 * @since 0.1.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;
}

The same content is in 41 releases, WordPress 7.0-beta1 to 7.2-RC1. See them all, or every version of this file.