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