instance method
server_software
Ruby on Rails 5.0.7.2
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 278
def server_software
(get_header('SERVER_SOFTWARE') && /^([a-zA-Z]+)/ =~ get_header('SERVER_SOFTWARE')) ? $1.downcase : nil
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 278
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request