You can find post function inside storage.js from magento2-base module.
Full path for post function is,
vendor/magento/magento2-base/lib/web/mage/storage.js
Open this file and you can check post function with below value,
/**
* Perform asynchronous POST request to server.
* @param {String} url
* @param {String} data
* @param {Boolean} global
* @param {String} contentType
* @returns {Deferred}
*/
post: function (url, data, global, contentType) {
global = global === undefined ? true : global;
contentType = contentType || 'application/json';
return $.ajax({
url: urlBuilder.build(url),
type: 'POST',
data: data,
global: global,
contentType: contentType
});
},
... View more