Module: Aikido::Zen::Scanners::SSRFScanner::Headers Private
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #headers ⇒ Hash<String, String> private
- #initialize(headers:, header_normalizer: :to_s.to_proc) ⇒ Object private
Instance Method Details
#headers ⇒ Hash<String, String>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
184 185 186 187 188 189 190 191 |
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 184 def headers return @headers if @normalized_headers @headers .transform_keys!(&:downcase) .transform_values!(&@header_normalizer) .tap { @normalized_headers = true } end |
#initialize(headers:, header_normalizer: :to_s.to_proc) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
177 178 179 180 181 |
# File 'lib/aikido/zen/scanners/ssrf_scanner.rb', line 177 def initialize(headers:, header_normalizer: :to_s.to_proc) @headers = headers.to_h @header_normalizer = header_normalizer @normalized_headers = false end |