class Protocol::HTTP::Headers

def extract(keys)

@parameter keys [Array] The keys to extract.

Extract the specified keys from the headers.
def extract(keys)
	deleted, @fields = @fields.partition do |field|
		keys.include?(field.first.downcase)
	end
	
	if @indexed
		keys.each do |key|
			@indexed.delete(key)
		end
	end
	
	return deleted
end