module Roda::RodaPlugins::IPFromHeader::RequestMethods

  1. lib/roda/plugins/ip_from_header.rb

Methods

Public Instance

  1. ip

Public Instance methods

ip()

Return the IP address continained in the configured header, if present. Fallback to the default behavior if not present.

[show source]
   # File lib/roda/plugins/ip_from_header.rb
26 def ip
27   @env[roda_class.opts[:ip_from_header_env_key]] || super
28 end