onRequest method

JSFunction onRequest(
  1. JSObject optsOrHandler, [
  2. JSFunction handler
])

Handles HTTPS requests. @param opts - Options to set on this function @param handler - A function that takes a {@link https.Request} and response object, same signature as an Express app. @returns A function that you can export and deploy.

Implementation

external JSFunction onRequest(
  JSObject optsOrHandler, [
  // (Request request, express.Response response) => FutureOr<void>
  JSFunction handler,
]);