Sha256: 115391f28537b0ba38c75bfe3654536a9f1ba895d3ae9a3365d3f0a817e952ea
Contents?: true
Size: 418 Bytes
Versions: 4
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true module ApiProxy class HeadersFilter ALLOWED_HEADERS = [ 'content-type', 'etag', 'cache-control', 'content-length', 'content-disposition', 'content-transfer-encoding' ].freeze def initialize(headers) @headers = headers end def filter @headers.select { |key, _value| ALLOWED_HEADERS.include?(key) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems