class
v4.2.9 - Show latest stable - Superclass: Object

The GetIp class exists as a way to defer processing of the request data into an actual IP address. If the ActionDispatch::Request#remote_ip method is called, this class will calculate the value and then memoize it.

Files

  • actionpack/lib/action_dispatch/middleware/remote_ip.rb