Method

onRequest

static

onRequest(handler) returns functions.HttpsFunction

Event handler which is run every time an HTTPS URL is hit.

The event handler is called with Express Request and Response objects as its only arguments.

Parameter

handler

function(non-null express.Request, non-null express.Response)

Event handler which is run every time an HTTPS URL is hit. The function is called with Express objects which represent the request and the response.

Value must not be null.

Returns

non-null functions.HttpsFunction A Cloud Function which you can export.