Passer au contenu principal

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

ParamTypeDescription
operationsOperationsOperations 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

ParamTypeDescription
paramsobjectUrl, Headers and Body parameters
callbackfunction(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)