Class: WEBrick::HTTPRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/yard/server/webrick_adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#version_suppliedObject

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

Returns:

  • (Boolean)


44
# File 'lib/yard/server/webrick_adapter.rb', line 44

def xhr?; (self['X-Requested-With'] || "").casecmp('xmlhttprequest') == 0 end