Class

Rack::Utils::Context

Inheritance
< Object

Context allows the use of a compatible middleware at different points in a request handling stack. A compatible middleware must define context which should take the arguments env and app. The first of which would be the request environment. The second of which would be the rack application that the request would be forwarded to.

Attributes

Name Visibility R/W Description
app public R
for public R

Methods

Class

Visibility Signature
public new (app_f, app_r)

Instance

Visibility Signature
public call (env)
public context (env, app=@app)
public recontext (app)

Class Method Detail

new(app_f, app_r)

Instance Method Detail

call(env)

context(env, app=@app)

recontext(app)