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