Skip to content

Commit f32a242

Browse files
$network.request additions: HEAD, PATCH, and timeout
1 parent 2ede7c0 commit f32a242

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/actions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,9 +1648,10 @@ Make GET/POST/PUT/DELETE network requests
16481648

16491649
### ■ options
16501650
- `url`: The url to access.
1651-
- `method`: `"get"` | `"post"` | `"put"` | `"delete"`.
1651+
- `method`: `"get"` | `"post"` | `"put"` | `"delete"` | `"head"` | `"patch"` .
16521652
- `data`: Parameters to send along with the url (optional)
16531653
- `header`: Headers to attach to every request if any (optional)
1654+
- `timeout`: network request time out in seconds (optional).
16541655
- `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`.
16551656
- `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.
16561657

0 commit comments

Comments
 (0)