Sha256: ebb2e4663d55ed3f2e7b73a22d62a4b33438b52183e9ee5758149c96614d98bc

Contents?: true

Size: 1.96 KB

Versions: 10

Compression:

Stored size: 1.96 KB

Contents

# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Agent
    module Reporting
      # input types for InputAnalysis results
      module InputType
        UNDEFINED_TYPE          = :UNDEFINED_TYPE.cs__freeze
        BODY                    = :BODY.cs__freeze
        COOKIE_NAME             = :COOKIE_NAME.cs__freeze
        COOKIE_VALUE            = :COOKIE_VALUE.cs__freeze
        HEADER                  = :HEADER.cs__freeze
        PARAMETER_NAME          = :PARAMETER_NAME.cs__freeze
        PARAMETER_VALUE         = :PARAMETER_VALUE.cs__freeze
        QUERYSTRING             = :QUERYSTRING.cs__freeze
        URI                     = :URI.cs__freeze
        SOCKET                  = :SOCKET.cs__freeze
        JSON_VALUE              = :JSON_VALUE.cs__freeze
        JSON_ARRAYED_VALUE      = :JSON_ARRAYED_VALUE.cs__freeze
        MULTIPART_CONTENT_TYPE  = :MULTIPART_CONTENT_TYPE.cs__freeze
        MULTIPART_VALUE         = :MULTIPART_VALUE.cs__freeze
        MULTIPART_FIELD_NAME    = :MULTIPART_FIELD_NAME.cs__freeze
        MULTIPART_NAME          = :MULTIPART_NAME.cs__freeze
        XML_VALUE               = :XML_VALUE.cs__freeze
        DWR_VALUE               = :DWR_VALUE.cs__freeze
        METHOD                  = :METHOD.cs__freeze
        REQUEST                 = :REQUEST.cs__freeze
        URL_PARAMETER           = :URL_PARAMETER.cs__freeze
        UNKNOWN                 = :UNKNOWN.cs__freeze

        class << self
          def to_a
            [
              UNDEFINED_TYPE, BODY, COOKIE_NAME, COOKIE_VALUE, HEADER, PARAMETER_NAME, PARAMETER_VALUE,
              QUERYSTRING, URI, SOCKET, JSON_VALUE, JSON_ARRAYED_VALUE, MULTIPART_CONTENT_TYPE, MULTIPART_VALUE,
              MULTIPART_FIELD_NAME, MULTIPART_NAME, XML_VALUE, DWR_VALUE, METHOD, REQUEST, URL_PARAMETER, UNKNOWN
            ]
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
contrast-agent-7.2.0 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-7.1.0 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-7.0.0 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-6.15.3 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-6.15.2 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-6.15.1 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-6.15.0 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-6.14.0 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-6.13.0 lib/contrast/agent/reporting/input_analysis/input_type.rb
contrast-agent-6.12.0 lib/contrast/agent/reporting/input_analysis/input_type.rb