Module: Rack::OAuth2::Server::Rails::ResponseExt

Included in:
Authorize::ResponseExt
Defined in:
lib/rack/oauth2/server/rails/response_ext.rb

Instance Method Summary collapse

Instance Method Details

#finishObject



30
31
32
33
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 30

def finish
  @finished = true
  super
end

#headersObject



24
25
26
27
28
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 24

def headers
  ensure_finish do
    @headers
  end
end

#jsonObject



18
19
20
21
22
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 18

def json
  ensure_finish do
    @body
  end
end

#locationObject



12
13
14
15
16
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 12

def location
  ensure_finish do
    super
  end
end

#redirect?Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 6

def redirect?
  ensure_finish do
    super
  end
end