From f32a2424b308cd1208e825e02ef19922d5d0426b Mon Sep 17 00:00:00 2001 From: gliechtenstein Date: Wed, 10 Jan 2018 00:02:44 -0800 Subject: [PATCH] $network.request additions: HEAD, PATCH, and timeout --- docs/actions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/actions.md b/docs/actions.md index 602fc05..117b2a7 100644 --- a/docs/actions.md +++ b/docs/actions.md @@ -1648,9 +1648,10 @@ Make GET/POST/PUT/DELETE network requests ### ■ options - `url`: The url to access. -- `method`: `"get"` | `"post"` | `"put"` | `"delete"`. +- `method`: `"get"` | `"post"` | `"put"` | `"delete"` | `"head"` | `"patch"` . - `data`: Parameters to send along with the url (optional) - `header`: Headers to attach to every request if any (optional) +- `timeout`: network request time out in seconds (optional). - `data_type`: Specifies how the fetched response will be processed. Can be `json`, `html`, `rss`, or `raw`. `json` assumes that the return value will be in JSON format, whereas `raw` expects a plain text. You can use `raw` type when fetching a plain text or CSV. `html` is for fetching HTML content and especially required when you need to utilize HTML requests associated with cookies/sessions. `rss` is used to fetch RSS. The default is `json`. - `content_type`: Specifies which format the parameters will be sent as. By default it's sent as a form object, but in case you specify `{"content_type": "json"}` the data will be submitted as a JSON string.