Methods
C
N
Class Public methods
new(app)
   # File actionpack/lib/action_dispatch/middleware/head.rb, line 3
3:     def initialize(app)
4:       @app = app
5:     end
Instance Public methods
call(env)
    # File actionpack/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, _ = @app.call(env)
12:         [status, headers, []]
13:       else
14:         @app.call(env)
15:       end
16:     end