From 899c1eaeef2212ff24645391fc8210afe346300c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 16 Jun 2021 15:19:18 +0200 Subject: improve docs --- it_url.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 1c3bfb8..a8fd4ca 100644 --- a/it_url.class +++ b/it_url.class @@ -98,8 +98,8 @@ static function _postprocess($data, $p) * @param $p['headers'] optional associative array of HTTP headers to send * @param $p['safety'] DEPRECATED. 0 = ignore errors, 1 = errors, 2 = fatals * @param $p['it_error'] extra arguments for it_error or false to ignore errors - * @param $p['timeout'] timeout per read in seconds, defaults to 5. fractions allowed. silent, see $p['safety'] - * @param $p['totaltimeout'] timeout for the whole function call + * @param $p['timeout'] inactivity timeout seconds, default 5. fractions ok. silent by default + * @param $p['totaltimeout'] timeout for the whole attempt but see $['retry'] * @param $p['maxlength'] maximum length of response * @param $p['filemtime'] Add HTTP header to only fetch when newer than this, otherwise return true instead of data * @param $p['data'] POST data array with key-value pairs @@ -349,7 +349,7 @@ function request($p=array()) * @param $p parameter array with the following keys (same as it_url::get) * @param $p['urls'] array/generator of urls to get * @param $p['timeout'] timeout per read in seconds, defaults to 5. (TODO: fractions allowed?) - * @param $p['totaltimeout'] timeout for the whole function call (fractions allowed) + * @param $p['totaltimeout'] timeout for the whole attempt (fractions ok). see $p['retry'] * @param $p['followlocation'] follow redirects [true] * @param $p['headers'] optional array of HTTP headers to send * @param $p['parallel'] max number of parallel requests -- cgit v1.2.3