Parent

Methods

Class Index [+]

Quicksearch

ActionDispatch::Head

Public Class Methods

new(app) click to toggle source
   # File lib/action_dispatch/middleware/head.rb, line 3
3:     def initialize(app)
4:       @app = app
5:     end

Public Instance Methods

call(env) click to toggle source
    # File lib/action_dispatch/middleware/head.rb, line 7
 7:     def call(env)
 8:       if env["REQUEST_METHOD"] == "HEAD"
 9:         env["REQUEST_METHOD"] = "GET"
10:         env["rack.methodoverride.original_method"] = "HEAD"
11:         status, headers, body = @app.call(env)
12:         [status, headers, []]
13:       else
14:         @app.call(env)
15:       end
16:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.