 expect = require('chai').expect
 fs     = require('fs')
+url    = require('url')
 http   = require('http')
+https  = require('https')
 Stream = require('stream')
 
 Reader = require('../lib/reader')

          expect(err).to.be.instanceof Error
          expect(err.message).to.be.eql 'http status 404: Not Found'
          done()

          expect(fullData).to.be.eql @dummy.toString()
          done()

  context 'when reading from an http server', ->
    before ->
      @address = '127.0.0.1'
      @port    = 1338
