Edit File by line
/home/zeestwma/redstone.../wp-inclu.../SimplePi.../src/HTTP
File: Client.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue
[2] Fix | Delete
// SPDX-License-Identifier: BSD-3-Clause
[3] Fix | Delete
[4] Fix | Delete
declare(strict_types=1);
[5] Fix | Delete
[6] Fix | Delete
namespace SimplePie\HTTP;
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* HTTP Client interface
[10] Fix | Delete
*
[11] Fix | Delete
* @internal
[12] Fix | Delete
*/
[13] Fix | Delete
interface Client
[14] Fix | Delete
{
[15] Fix | Delete
public const METHOD_GET = 'GET';
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* send a request and return the response
[19] Fix | Delete
*
[20] Fix | Delete
* @param Client::METHOD_* $method
[21] Fix | Delete
* @param array<string, string> $headers
[22] Fix | Delete
*
[23] Fix | Delete
* @throws ClientException if anything goes wrong requesting the data
[24] Fix | Delete
*/
[25] Fix | Delete
public function request(string $method, string $url, array $headers = []): Response;
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function