Sha256: b26671fa097d09f32cf261df5e8c9130415610559c666dd51142a79907f92dbc

Contents?: true

Size: 251 Bytes

Versions: 136

Compression:

Stored size: 251 Bytes

Contents

class WriteOnClose
  def each(&block)
    @callback = block
  end

  def close
    @callback.call "7\r\nGoodbye\r\n0\r\n\r\n"
  end
end
use Rack::ContentType, "text/plain"
run(lambda { |_| [ 200, [%w(Transfer-Encoding chunked)], WriteOnClose.new ] })

Version data entries

136 entries across 136 versions & 12 rubygems

Version Path
unicorn-6.1.0 t/write-on-close.ru
unicorn-6.0.0 t/write-on-close.ru
unicorn-5.8.0 t/write-on-close.ru
unicorn-5.7.0 t/write-on-close.ru
unicorn-5.6.0 t/write-on-close.ru
unicorn-5.5.5 t/write-on-close.ru
unicorn-5.5.4 t/write-on-close.ru
unicorn-5.5.3 t/write-on-close.ru
rainbows-5.2.1 t/write-on-close.ru
unicorn-5.5.2 t/write-on-close.ru
unicorn-5.5.1 t/write-on-close.ru
unicorn-5.5.0.1.g6836 t/write-on-close.ru
unicorn-5.5.0 t/write-on-close.ru
rainbows-5.2.0 t/write-on-close.ru
unicorn-5.5.0.pre1 t/write-on-close.ru
unicorn-5.4.1 t/write-on-close.ru
unicorn-5.4.0 t/write-on-close.ru
unicorn-5.3.1 t/write-on-close.ru
unicorn-shopify-5.3.0 t/write-on-close.ru
rainbows-5.1.1 t/write-on-close.ru