mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
docs: Document returnFull
parameter of getContents
(#3120)
This commit is contained in:
parent
bef6fc5cbd
commit
85b87b9597
@ -15,6 +15,7 @@ The `getContents` function uses [cURL](https://secure.php.net/manual/en/book.cur
|
||||
| `url` | string | *required* | The URL of the contents to acquire
|
||||
| `header` | array | *optional* | An array of HTTP header fields to set, in the format `array('Content-type: text/plain', 'Content-length: 100')`, see [CURLOPT_HTTPHEADER](https://secure.php.net/manual/en/function.curl-setopt.php)
|
||||
| `opts` | array | *optional* | An array of cURL options in the format `array(CURLOPT_POST => 1);`, see [curl_setopt](https://secure.php.net/manual/en/function.curl-setopt.php) for a complete list of options.
|
||||
| `returnFull` | boolean | *optional* | Specifies whether to return the response body from cURL (default) or the response body, code, headers, etc.
|
||||
|
||||
```PHP
|
||||
$header = array('Content-type:text/plain', 'Content-length: 100');
|
||||
|
Loading…
x
Reference in New Issue
Block a user