CoreFiles by mySites.guru
Client.php28 lines, 607 bytes, from wordpress-7.2-beta2.zip
Raw History Compare with 7.2-beta1
md5
84871f40c141cf31c2f60e6afdb0493d
sha1
df28c64c8dfae5932143db696ce6da6f504f061e
sha256
39a5263e18c28a3e0b9f78ce6361c7bb3331ba7920961dc34780bafafe00d646
<?php

// SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue
// SPDX-License-Identifier: BSD-3-Clause

declare(strict_types=1);

namespace SimplePie\HTTP;

/**
 * HTTP Client interface
 *
 * @internal
 */
interface Client
{
    public const METHOD_GET = 'GET';

    /**
     * send a request and return the response
     *
     * @param Client::METHOD_* $method
     * @param array<string, string> $headers
     *
     * @throws ClientException if anything goes wrong requesting the data
     */
    public function request(string $method, string $url, array $headers = []): Response;
}

The same content is in 61 releases, WordPress 6.9-beta1 to 7.2-beta5. See them all, or every version of this file.