Skip to content

Commit

Permalink
v 1.2.1 added timeout
Browse files Browse the repository at this point in the history
default timeout 30 secs
  • Loading branch information
irritanterik committed May 27, 2016
1 parent ea81636 commit b21bfad
Show file tree
Hide file tree
Showing 18 changed files with 365 additions and 130 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ condition or execute HTTP requests as a flow action with this app.
### Action cards
- HTTP Delete
- HTTP Get
- HTTP Get JSON (for query parameters like ?a=1&b=zz use `{"a":1,"b":"zz"}`)
- DEPRICATED: HTTP Get JSON (for query parameters like ?a=1&b=zz use `{"a":1,"b":"zz"}`, will be removed in a next version. Queryparameters can now be used with the HTTP Get card)
- HTTP Put JSON
- HTTP Post Form (content-type 'application/x-www-form-urlencoded')
- HTTP Post Form (content-type 'application/x-www-form-urlencoded', JSON formatted)
- HTTP Post JSON (content-type 'application/json')
- WebSocket Send (message to ws://x.x.x.x:y endpoint)
- GET variable step 1 (read 'get variable and trigger flow')
Expand All @@ -38,6 +38,7 @@ When this cards executes succesfull, it will start flows with the 'GET variable

Happy hacking!
#### Notes
Requests will time-out after 30 seconds.
Passing a valid JSON string (at least `{}` ) is obligatory for cards with a JSON parameter.

###### Advanced HTTP options
Expand Down
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function createUrlOptions (input, mergeOptions) {
result = {uri: input}
}
if (mergeOptions) mergeOptional(result, mergeOptions)
mergeOptional(result, {timeout: 30000})
return result
} // function createUrlOptions

Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id":"com.internet",
"version":"1.2.0",
"version":"1.2.1",
"compatibility":">=0.8.20",
"name":{
"en":"HTTP request flow cards",
Expand Down
19 changes: 16 additions & 3 deletions node_modules/http.min/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions node_modules/http.min/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 17 additions & 18 deletions node_modules/http.min/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions node_modules/ws/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 5 additions & 12 deletions node_modules/ws/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions node_modules/ws/SECURITY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/ws/lib/BufferUtil.fallback.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions node_modules/ws/lib/PerMessageDeflate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion node_modules/ws/lib/Receiver.hixie.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b21bfad

Please sign in to comment.