class GooglePlus::Request::Phoenix

Public Class Methods

new(app) click to toggle source
# File lib/google_plus/request/phoenix.rb, line 16
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/google_plus/request/phoenix.rb, line 7
def call(env)
  # Not sure what what the X-Phx (Phoenix?) header is for but it's
  # required to access certain undocumented resources
  # e.g. GET urls/resolve
  env[:request_headers]['X-Phx'] = 'true'

  @app.call(env)
end