HEX
Server: Apache
System: Linux BC-WP-PSVR01.bindcloud.jp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: apache (48)
PHP: 8.3.8
Disabled: phpinfo, proc_open, shell_exec, exec, system, dl, passthru, putenv, chown, chgrp, chmod, popen, pclose, pfsockopen, ssh2_connect, ssh2_tunnel, virtual
Upload Files
File: /d/premium/planet/inosan/wlwp3/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;
}