# File lib/camping/server.rb, line 241 241: def call(env) 242: status, headers, body = @app.call(env) 243: 244: if key = headers.keys.grep(/X-Sendfile/).first 245: filename = headers[key] 246: content = open(filename,'rb') { | io | io.read} 247: headers['Content-Length'] = size(content).to_s 248: body = [content] 249: end 250: 251: return status, headers, body 252: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.