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 @app.call and then modifies the response.
In that case you just have to include SimpleWrapper in your async wrapper class.
Instance Attribute Summary
Attributes included from Mixin
Instance Method Summary (collapse)
Methods included from Mixin
Methods included from LateInitializer
Instance Method Details
- (Object) async_callback(result)
125 126 127 128 |
# File 'lib/async_rack/async_callback.rb', line 125 def async_callback(result) @app = proc { result } super call(@env) end |