• File: Client.php
  • Full Path: /home/matthif/www/wp-includes/SimplePie/src/HTTP/Client.php
  • Date Modified: 12/03/2025 4:34 AM
  • File size: 607 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?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 $methodstring $url, array $headers = []): Response;
}