src/ExpressAdapter.js
/**
   * Handles Azure Function requests.
   *
   * @param {Object} context Azure context object for a single request
   */
Handles Azure Function requests.
@param {Object} context Azure context object for a single request
Handles Azure Function requests . @param { Object } context Azure context object for a single request
handleAzureFunctionRequest(context) {
    assertContext(context);
    context.res = context.res || {};
    const req = new IncomingMessage(context);
    const res = new OutgoingMessage(context);
    this.emit("request", req, res);
  }
handleAzureFunctionRequest ( context ) { assertContext ( context ) ; context . res = context . res || { } ; const req = new IncomingMessage ( context ) ; const res = new OutgoingMessage ( context ) ; this . emit ( "request" , req , res ) ; }
Handles Azure Function requests.
Handles Azure Function requests .
// 1. Context basic initialization // 2. Wrapping // 3. Synchronously calls each of the listeners registered for the event