mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Revert "Replace IHTTPResult for CurlResult usages"
This reverts commit 97167d7b
This commit is contained in:
parent
0aaad3e392
commit
b70b9d1139
4 changed files with 23 additions and 24 deletions
|
@ -57,7 +57,7 @@ interface IHTTPRequest
|
|||
* @param string $accept_content supply Accept: header with 'accept_content' as the value
|
||||
* @param string $cookiejar Path to cookie jar file
|
||||
*
|
||||
* @return IHTTPResult With all relevant information, 'body' contains the actual fetched content.
|
||||
* @return CurlResult With all relevant information, 'body' contains the actual fetched content.
|
||||
*/
|
||||
public function fetchFull(string $url, bool $binary = false, int $timeout = 0, string $accept_content = '', string $cookiejar = '');
|
||||
|
||||
|
@ -76,7 +76,7 @@ interface IHTTPRequest
|
|||
* 'cookiejar' => path to cookie jar file
|
||||
* 'header' => header array
|
||||
*
|
||||
* @return IHTTPResult
|
||||
* @return CurlResult
|
||||
*/
|
||||
public function get(string $url, bool $binary = false, array $opts = []);
|
||||
|
||||
|
@ -88,7 +88,7 @@ interface IHTTPRequest
|
|||
* @param array $headers HTTP headers
|
||||
* @param int $timeout The timeout in seconds, default system config value or 60 seconds
|
||||
*
|
||||
* @return IHTTPResult The content
|
||||
* @return CurlResult The content
|
||||
*/
|
||||
public function post(string $url, $params, array $headers = [], int $timeout = 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue