class Sqreen::PayloadCreator::HeaderSection
object that default to call on framework header
Public Class Methods
new(framework)
click to toggle source
# File lib/sqreen/payload_creator/header_section.rb, line 14 def initialize(framework) @framework = framework end
Public Instance Methods
[](value)
click to toggle source
# File lib/sqreen/payload_creator/header_section.rb, line 18 def [](value) if %w[rack_client_ip rails_client_ip ip_headers].include?(value) return @framework.send(value) end @framework.header(value) end
ip_headers()
click to toggle source
# File lib/sqreen/payload_creator/header_section.rb, line 25 def ip_headers @framework.ip_headers end