async function listenAndServeTLS(options, handler) {
  const server = serveTLS(options);
  for await (const request of server) {
    handler(request);
  }
}
/**
 * Start an HTTPS server with given options and request handler
 *
 *     const body = "Hello HTTPS";
 *     const options = {
 *       hostname: "localhost",
 *       port: 443,
 *       certFile: "./path/to/localhost.crt",
 *       keyFile: "./path/to/localhost.key",
 *     };
 *     listenAndServeTLS(options, (req) => {
 *       req.respond({ body });
 *     });
 *
 * @param options Server configuration
 * @param handler Request handler
 */


@param options Server configuration
@param handler Request handler
@param options Server configuration @param handler Request handler
async function listenAndServeTLS(options, handler) {
  const server = serveTLS(options);
  for await (const request of server) {
    handler(request);
  }
}
async function listenAndServeTLS ( options , handler ) { const server = serveTLS ( options ) ; for await ( const request of server ) { handler ( request ) ; } }
Start an HTTPS server with given options and request handler
     const body = "Hello HTTPS";
     const options = {
       hostname: "localhost",
       port: 443,
       certFile: "./path/to/localhost.crt",
       keyFile: "./path/to/localhost.key",
     };
     listenAndServeTLS(options, (req) => {
       req.respond({ body });
     });
Start an HTTPS server with given options and request handler const body = " Hello HTTPS " ; const options = { hostname : " localhost " port : 443 certFile : " . / path / to / localhost . crt " keyFile : " . / path / to / localhost . key " } ; listenAndServeTLS ( options ( req ) = > { req . respond ( { body } ) ; } ) ;