mogy-http
v0.1.0
Published
HTTP Request Activity for Mogy
Downloads
1
Readme
mogy-http
HTTP Request Activity for mogy.
Installation
In your mogy project, install the dependency using npm :
$ npm install mogy-http --save
To register the http
activity to Amazon Simple Workflow :
$ mogy register
Config
The config for this activity is optional. It allows to override request options for all http activities.
In your mogy environment config file, under the activities
key, add :
"http": {
/*"proxy": {
}*/
}
Cf https://github.com/request/request to see the options.
Sample Decider Usage
activity({
name: 'my-task',
activity: 'http',
input: {
method: 'POST',
uri: 'http://requestb.in/1bhxg1v1',
form:{
key:'value'
}
}
})