HEX
Server: Apache
System: Linux plesk02.novi-net.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User: leokosak.from.hr_bptbvso25rn (10098)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/leokosak.from.hr/cms.leokosak.from.hr/wp-includes/SimplePie/src/HTTP/Client.php
<?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;
}