lib/protocol/http/headers.rb in protocol-http-0.11.0 vs lib/protocol/http/headers.rb in protocol-http-0.11.1

- old
+ new

@@ -74,9 +74,14 @@ def dup self.class.new(@fields, @indexed) end + def clear + @fields = [] + @indexed = nil + end + # An array of `[key, value]` pairs. attr :fields def freeze return if frozen?