mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
doc comment change: improved comment on download_file_content to clarify $headers
This commit is contained in:
parent
facc7b387f
commit
5ef082df38
@ -41,9 +41,11 @@ function get_file_url($path, $options=null, $type='coursefile') {
|
|||||||
* Due to security concerns only downloads from http(s) sources are supported.
|
* Due to security concerns only downloads from http(s) sources are supported.
|
||||||
*
|
*
|
||||||
* @param string $url file url starting with http(s)://
|
* @param string $url file url starting with http(s)://
|
||||||
* @param array $headers http headers, null if none
|
* @param array $headers http headers, null if none. If set, should be an
|
||||||
|
* associative array of header name => value pairs.
|
||||||
* @param array $postdata array means use POST request with given parameters
|
* @param array $postdata array means use POST request with given parameters
|
||||||
* @param bool $fullresponse return headers, responses, etc in a similar way snoopy does
|
* @param bool $fullresponse return headers, responses, etc in a similar way snoopy does
|
||||||
|
* (if false, just returns content)
|
||||||
* @param int $timeout timeout for complete download process including all file transfer
|
* @param int $timeout timeout for complete download process including all file transfer
|
||||||
* (default 5 minutes)
|
* (default 5 minutes)
|
||||||
* @param int $connecttimeout timeout for connection to server; this is the timeout that
|
* @param int $connecttimeout timeout for connection to server; this is the timeout that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user