lib/client.js
function icyOnResponse (res) {
  debug('request "response" event');

  var s = res;
  var metaint = res.headers['icy-metaint'];
  if (metaint) {
    debug('got metaint: %d', metaint);
    s = new Reader(metaint);
    res.pipe(s);

    s.res = res;

    Object.keys(res).forEach(function (k) {
      if ('_' === k[0]) return;
      debug('proxying %j', k);
      proxy(s, k);
    });
  }
  if (res.connection._wasIcy) {
    s.httpVersion = 'ICY';
  }
  this.emit('icyResponse', s);
}
function icyOnResponse (res) {
  debug('request "response" event');

  var s = res;
  var metaint = res.headers['icy-metaint'];
  if (metaint) {
    debug('got metaint: %d', metaint);
    s = new Reader(metaint);
    res.pipe(s);

    s.res = res;

    Object.keys(res).forEach(function (k) {
      if ('_' === k[0]) return;
      debug('proxying %j', k);
      proxy(s, k);
    });
  }
  if (res.connection._wasIcy) {
    s.httpVersion = 'ICY';
  }
  this.emit('icyResponse', s);
}
function icyOnResponse ( res ) { debug ( 'request "response" event' ) ; var s = res ; var metaint = res . headers [ 'icy-metaint' ] ; if ( metaint ) { debug ( 'got metaint: %d' , metaint ) ; s = new Reader ( metaint ) ; res . pipe ( s ) ; s . res = res ; Object . keys ( res ) . forEach ( function ( k ) { if ( '_' === k [ 0 ] ) return ; debug ( 'proxying %j' , k ) ; proxy ( s , k ) ; } ) ; } if ( res . connection . _wasIcy ) { s . httpVersion = 'ICY' ; } this . emit ( 'icyResponse' , s ) ; }
"response" event listener.

@api private
response event listener .