instance method
server_software
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
server_software()
Returns the lowercase name of the HTTP server software.
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 179
def server_software
(@env['SERVER_SOFTWARE'] && /^([a-zA-Z]+)/ =~ @env['SERVER_SOFTWARE']) ? $1.downcase : nil
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request