[Source]
# File lib/rack/head.rb, line 4 4: def initialize(app) 5: @app = app 6: end
# 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
[Validate]