lib/protocol/http/headers.rb in protocol-http-0.15.1 vs lib/protocol/http/headers.rb in protocol-http-0.16.0

- old
+ new

@@ -23,10 +23,11 @@ require_relative 'header/split' require_relative 'header/multiple' require_relative 'header/cookie' require_relative 'header/connection' require_relative 'header/cache_control' +require_relative 'header/etags' require_relative 'header/vary' module Protocol module HTTP # Headers are an array of key-value pairs. Some header keys represent multiple values. @@ -165,9 +166,13 @@ 'vary' => Header::Vary, # Headers specifically for proxies: 'via' => Split, 'x-forwarded-for' => Split, + + # Cache validations: + 'if-match' => Header::ETags, + 'if-none-match' => Header::ETags, # Headers which may be specified multiple times, but which can't be concatenated: 'www-authenticate' => Multiple, 'proxy-authenticate' => Multiple,