Sha256: f667c60164b4890e18a3ff1ca09dbc4115ab57469fb78531195f340a9bcfd73c

Contents?: true

Size: 357 Bytes

Versions: 30

Compression:

Stored size: 357 Bytes

Contents

module Groovy
  class MemoryPoolMiddleware
    def initialize(app, options = {})
      @app = app
    end
    
    def call(env)
      Groovy.contexts.each { |name, ctx| ctx.push_memory_pool }
      code, headers, body = @app.call(env)
      Groovy.contexts.each { |name, ctx| ctx.pop_memory_pool }
      [code, headers, body]
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
groovy-0.6.7 lib/groovy/middleware.rb
groovy-0.6.6 lib/groovy/middleware.rb
groovy-0.6.4 lib/groovy/middleware.rb
groovy-0.6.1 lib/groovy/middleware.rb
groovy-0.6.0 lib/groovy/middleware.rb
groovy-0.5.1 lib/groovy/middleware.rb
groovy-0.5.0 lib/groovy/middleware.rb
groovy-0.4.7 lib/groovy/middleware.rb
groovy-0.4.6 lib/groovy/middleware.rb
groovy-0.4.5 lib/groovy/middleware.rb
groovy-0.4.4 lib/groovy/middleware.rb
groovy-0.4.3 lib/groovy/middleware.rb
groovy-0.4.2 lib/groovy/middleware.rb
groovy-0.4.1 lib/groovy/middleware.rb
groovy-0.4.0 lib/groovy/middleware.rb
groovy-0.3.0 lib/groovy/middleware.rb
groovy-0.2.9 lib/groovy/middleware.rb
groovy-0.2.8 lib/groovy/middleware.rb
groovy-0.2.7 lib/groovy/middleware.rb
groovy-0.2.6 lib/groovy/middleware.rb