class Johac::Connection::Middleware::RequestCaptureMiddleware
A request middleware that captures the request and halts the request, if the connections context isn't nil
Public Instance Methods
call(env)
click to toggle source
# File lib/johac/connection.rb, line 124 def call(env) if env.request.context.kind_of?(Array) env.request.context << env return false end @app.call(env) end