progres@1.2.3
Functions
- execute(operations) ⇒
Operation
Execute a sequence of operations. Wraps
language-common/execute
, and prepends initial state for http.- postData(params, callback) ⇒
Operation
Make a POST request with a certificate
execute(operations) ⇒ Operation
Execute a sequence of operations.
Wraps language-common/execute
, and prepends initial state for http.
Kind: global function
Param | Type | Description |
---|---|---|
operations | Operations | Operations to be performed. |
Example
execute(
create('foo'),
delete('bar')
)(state)
postData(params, callback) ⇒ Operation
Make a POST request with a certificate
Kind: global function
Access: public
Param | Type | Description |
---|---|---|
params | object | Url, Headers and Body parameters |
callback | function | (Optional) A callback function |
Example
postData({
url: urlDTP,
body: obj,
headers: {
'Ocp-Apim-Subscription-Key': configuration['Ocp-Apim-Subscription-Key'],
},
agentOptions: {
key,
cert,
},
}, callback)(state)