lib/ponse.js
function redirect(url, response) {
    const header  = {
        'Location': url
    };
    
    assert(url, 'url could not be empty!');
    assert(response, 'response could not be empty!');
    
    fillHeader(header, response);
    response.statusCode = MOVED_PERMANENTLY;
    response.end();
}
function redirect(url, response) {
    const header  = {
        'Location': url
    };
    
    assert(url, 'url could not be empty!');
    assert(response, 'response could not be empty!');
    
    fillHeader(header, response);
    response.statusCode = MOVED_PERMANENTLY;
    response.end();
}
function redirect ( url , response ) { const header = { 'Location' : url } ; assert ( url , 'url could not be empty!' ) ; assert ( response , 'response could not be empty!' ) ; fillHeader ( header , response ) ; response . statusCode = MOVED_PERMANENTLY ; response . end ( ) ; }
redirect to another URL
redirect to another URL