Module: AsyncRack::AsyncCallback::SimpleWrapper

Includes:
Mixin
Included in:
Chunked, ConditionalGet, ContentLength, ContentType, Deflater, ETag, Head, Sendfile, ShowStatus
Defined in:
lib/async_rack/async_callback.rb

Overview

A simple wrapper is useful if the first thing a middleware does is something like In that case you just have to include SimpleWrapper in your async wrapper class.

Instance Attribute Summary

Attributes included from Mixin

#env

Instance Method Summary collapse

Methods included from Mixin

#call, #setup_async

Methods included from LateInitializer

#included

Instance Method Details

#async_callback(result) ⇒ Object



125
126
127
128
# File 'lib/async_rack/async_callback.rb', line 125

def async_callback(result)
  @app = proc { result }
  super call(@env)
end