instance method
server_software
Ruby on Rails 6.0.6
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 315
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 315
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request