Method: HTTP::Protocol::Headers#slice!
- Defined in:
- lib/http/protocol/headers.rb
#slice!(keys) ⇒ Object
109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/http/protocol/headers.rb', line 109 def slice!(keys) values, @fields = @fields.partition do |field| keys.include?(field.first.downcase) end if @indexed keys.each do |key| @indexed.delete(key) end end end |