function serveTLS(options) {
  const tlsOptions = {
    ...options,
    transport: "tcp",
  };
  const listener = Deno.listenTls(tlsOptions);
  return new Server(listener);
}
/**
 * Create an HTTPS server with given options
 *
 *     const body = "Hello HTTPS";
 *     const options = {
 *       hostname: "localhost",
 *       port: 443,
 *       certFile: "./path/to/localhost.crt",
 *       keyFile: "./path/to/localhost.key",
 *     };
 *     for await (const req of serveTLS(options)) {
 *       req.respond({ body });
 *     }
 *
 * @param options Server configuration
 * @return Async iterable server instance for incoming requests
 */


@param options Server configuration
@return Async iterable server instance for incoming requests
@param options Server configuration @return Async iterable server instance for incoming requests
function serveTLS(options) {
  const tlsOptions = {
    ...options,
    transport: "tcp",
  };
  const listener = Deno.listenTls(tlsOptions);
  return new Server(listener);
}
function serveTLS ( options ) { const tlsOptions = { ... options , transport : "tcp" , } ; const listener = Deno . listenTls ( tlsOptions ) ; return new Server ( listener ) ; }
Create an HTTPS server with given options
     const body = "Hello HTTPS";
     const options = {
       hostname: "localhost",
       port: 443,
       certFile: "./path/to/localhost.crt",
       keyFile: "./path/to/localhost.key",
     };
     for await (const req of serveTLS(options)) {
       req.respond({ body });
     }
Create an HTTPS server with given options const body = " Hello HTTPS " ; const options = { hostname : " localhost " port : 443 certFile : " . / path / to / localhost . crt " keyFile : " . / path / to / localhost . key " } ; for await ( const req of serveTLS ( options )) { req . respond ( { body } ) ; }