Class: Dillo::SocrataAppTokenMiddleware

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/dillo.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



23
24
25
26
27
# File 'lib/dillo.rb', line 23

def call(env)
  raise "You must specify an app token" if !Dillo.app_token
  env[:request_headers]["X-App-Token"] = Dillo.app_token
  @app.call env
end