Skip to main content

progres@1.4.4

postData(params, callback)

This adaptor exports the following from common:

alterState()
dataPath()
dataValue()
each()
field()
fields()
fn()
fnIf()
http()
lastReferenceValue()
merge()
sourceValue()

Functions

postData

postData(params, callback) ⇒ Operation

Make a POST request with a certificate

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)