Skip to content

Commit

Permalink
$network.request additions: HEAD, PATCH, and timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
gliechtenstein committed Jan 10, 2018
1 parent 2ede7c0 commit f32a242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit f32a242

Please sign in to comment.