In Files

Parent

Methods

Class Index [+]

Quicksearch

Rack::Head

Public Class Methods

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

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.