Skip to main content

progres@1.3.8

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)