function HTTPSRecord(match, target, cert, proxy, onRequest) {
        this.match = vhost_1.hostregexp(match);
        this.target = target;
        this.proxy = proxy;
        this.onRequest = onRequest;
        this.credentials = crypto_1.createCredentials ? crypto_1.createCredentials(cert) : tls_1.createSecureContext(cert);
    }
/**
     * Create a new HTTP record definition
     *
     * @param match The hostname pattern to match
     * @param target The proxy target
     * @param cert The HTTPS certificate
     * @param proxy Optional proxy config
     */
Create a new HTTP record definition
@param match The hostname pattern to match
@param target The proxy target
@param cert The HTTPS certificate
@param proxy Optional proxy config
Create a new HTTP record definition @param match The hostname pattern to match @param target The proxy target @param cert The HTTPS certificate @param proxy Optional proxy config
function HTTPSRecord(match, target, cert, proxy, onRequest) {
        this.match = vhost_1.hostregexp(match);
        this.target = target;
        this.proxy = proxy;
        this.onRequest = onRequest;
        this.credentials = crypto_1.createCredentials ? crypto_1.createCredentials(cert) : tls_1.createSecureContext(cert);
    }
function HTTPSRecord ( match , target , cert , proxy , onRequest ) { this . match = vhost_1 . hostregexp ( match ) ; this . target = target ; this . proxy = proxy ; this . onRequest = onRequest ; this . credentials = crypto_1 . createCredentials ? crypto_1 . createCredentials ( cert ) : tls_1 . createSecureContext ( cert ) ; }
Create a new HTTP record definition
 @param match The hostname pattern to match
 @param target The proxy target
 @param cert The HTTPS certificate
 @param proxy Optional proxy config
Create a new HTTP record definition @param match The hostname pattern to match @param target The proxy target @param cert The HTTPS certificate @param proxy Optional proxy config