class Autobots::PowerBy

Public Class Methods

new(app) click to toggle source
# File lib/power_by_autobots.rb, line 9
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/power_by_autobots.rb, line 13
def call(env)
  status, headers, response = @app.call(env)
  headers["X-Powered-By"] = "Autobots"

  [status, headers, response]
end