Class: WEBrick::HTTPRequest
- Inherits:
-
Object
- Object
- WEBrick::HTTPRequest
- Defined in:
- lib/yard/server/webrick_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.
43 44 45 |
# File 'lib/yard/server/webrick_adapter.rb', line 43 def version_supplied @version_supplied end |
Instance Method Details
#xhr? ⇒ Boolean
44 |
# File 'lib/yard/server/webrick_adapter.rb', line 44 def xhr?; (self['X-Requested-With'] || "").casecmp('xmlhttprequest') == 0 end |