Sha256: 714b4f4a99ac168768a1400d9a1d2da3b8436b34f6d5d015ec49d7fc16949452

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

module Rack
  module EncodingGuard
    class Strategy
      PROCESSIBLE_KEYS = %w(
        HTTP_REFERER
        PATH_INFO
        REQUEST_URI
        REQUEST_PATH
        QUERY_STRING
      )

      attr_reader :options

      def initialize(options = {})
        @options = options
      end

      def process(env)
        yield
      end
    end
  end
end

require 'rack/encoding_guard/reject_strategy'
require 'rack/encoding_guard/sanitize_strategy'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-encoding_guard-0.1.2 lib/rack/encoding_guard/strategy.rb
rack-encoding_guard-0.1.1 lib/rack/encoding_guard/strategy.rb
rack-encoding_guard-0.1.0 lib/rack/encoding_guard/strategy.rb