Skip to main content

progres@1.3.10

The following functions are exported from the common adaptor:

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

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)