Class: Rack::Request
- Inherits:
-
Object
- Object
- Rack::Request
- Defined in:
- lib/yard/server/rack_adapter.rb
Instance Attribute Summary collapse
-
#version_supplied ⇒ Object
Returns the value of attribute version_supplied.
Instance Method Summary collapse
Instance Attribute Details
#version_supplied ⇒ Object
Returns the value of attribute version_supplied.
94 95 96 |
# File 'lib/yard/server/rack_adapter.rb', line 94 def version_supplied @version_supplied end |
Instance Method Details
#xhr? ⇒ Boolean
96 |
# File 'lib/yard/server/rack_adapter.rb', line 96 def xhr?; (env['HTTP_X_REQUESTED_WITH'] || "").casecmp("xmlhttprequest") == 0 end |