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
#finish ⇒ Object
30 31 32 33 |
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 30 def finish @finished = true super end |
#header ⇒ Object
24 25 26 27 28 |
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 24 def header ensure_finish do @header end end |
#json ⇒ Object
18 19 20 21 22 |
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 18 def json ensure_finish do @response.body end end |
#location ⇒ Object
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
6 7 8 9 10 |
# File 'lib/rack/oauth2/server/rails/response_ext.rb', line 6 def redirect? ensure_finish do @response.redirect? end end |