Sha256: 1aad4fa346fa75f0cfcc48f01f1e29f981a85d6dc95a3d15c4387219fe85bd9c

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

require 'rlyeh/dispatcher'

module Rlyeh
  module DeepOnes
    class Closer
      include Rlyeh::Dispatcher
      
      def initialize(app)
        @app = app
      end

      on :quit do |env|
        env.connection.close_connection_after_writing
        throw :halt
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rlyeh-0.0.2 lib/rlyeh/deep_ones/closer.rb