src/Server.js
function forceEnd(path, response) {

            // Send a custom response for gateway timeout
            new $CustomResponse().head(504, null, {
                'Content-Type': 'text/html'
            }).writeSync(`<h1>${RESPONSE_HEADER_MESSAGES[ 504 ]}</h1>`);

            // Log something
            $LogProvider.error(path, response._header);

            // End the response
            end(response);
        }
function forceEnd(path, response) {

            // Send a custom response for gateway timeout
            new $CustomResponse().head(504, null, {
                'Content-Type': 'text/html'
            }).writeSync(`<h1>${RESPONSE_HEADER_MESSAGES[ 504 ]}</h1>`);

            // Log something
            $LogProvider.error(path, response._header);

            // End the response
            end(response);
        }
function forceEnd ( path , response ) { // Send a custom response for gateway timeout new $CustomResponse ( ) . head ( 504 , null , { 'Content-Type' : 'text/html' } ) . writeSync ( ` ${ RESPONSE_HEADER_MESSAGES [ 504 ] } ` ) ; // Log something $LogProvider . error ( path , response . _header ) ; // End the response end ( response ) ; }
Force an ended response with a timeout
Force an ended response with a timeout