]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/http/HttpAccess.php
3 declare(strict_types
=1);
5 namespace Shaarli\Http
;
10 * This is mostly an OOP wrapper for HTTP functions defined in `HttpUtils`.
11 * It is used as dependency injection in Shaarli's container.
13 * @package Shaarli\Http
17 public function getHttpResponse($url, $timeout = 30, $maxBytes = 4194304, $curlWriteFunction = null)
19 return get_http_response($url, $timeout, $maxBytes, $curlWriteFunction);
22 public function getCurlDownloadCallback(
28 $curlGetInfo = 'curl_getinfo'
30 return get_curl_download_callback(