Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A function adding custom headers to the response.
# ibm_cloud/demo/headers.js
function main(params) {
return {
statusCode: 200,
headers: { 'X-Custom-Header': 'IBMCloudFunction' },
body: 'Custom headers added'
};
}
exports.main = main;IBM Cloud Functions is a serverless platform based on Apache OpenWhisk that allows developers to run code in response to events without managing infrastructure. It supports multiple runtimes and integrates with IBM Cloud services for event-driven applications.
Origin & Creator
IBM Cloud Functions was launched by IBM in 2016, based on the open-source Apache OpenWhisk project.
Industrial Note
IBM Cloud Functions is ideal for enterprises already using IBM Cloud who want to implement event-driven, serverless workflows and integrate with AI, data, and messaging services.