]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Register new Key header
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Mar 2013 22:39:26 +0000 (16:39 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Mar 2013 22:39:26 +0000 (16:39 -0600)
see http://tools.ietf.org/html/draft-fielding-http-key-02 for details
on the Vary extensions this header will be providing.

src/HttpHeader.cc
src/HttpHeader.h

index 451530380475d5aa9c33c924f0a91cb1a826b686..9c50309dde9f64cf4052dc2b7bbb1bfd90330c2d 100644 (file)
@@ -112,6 +112,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"If-None-Match", HDR_IF_NONE_MATCH, ftStr},       /* for now */
     {"If-Range", HDR_IF_RANGE, ftDate_1123_or_ETag},
     {"Keep-Alive", HDR_KEEP_ALIVE, ftStr},
+    {"Key", HDR_KEY, ftStr},
     {"Last-Modified", HDR_LAST_MODIFIED, ftDate_1123},
     {"Link", HDR_LINK, ftStr},
     {"Location", HDR_LOCATION, ftStr},
index e93cf95d676a09e1532bf624ae3ff39b3655d2ce..f595b96f63a9642556ec2acede15ea6fc596e294 100644 (file)
@@ -90,6 +90,7 @@ typedef enum {
     HDR_IF_RANGE,                       /**< RFC 2608, 2616 */
     /*HDR_IF_UNMODIFIED_SINCE,*/        /**< RFC 2608, 2616 */
     HDR_KEEP_ALIVE,                     /**< obsolete HTTP/1.0 header we may need to erase */
+    HDR_KEY,                            /**< experimental RFC Draft draft-fielding-http-key-02 */
     HDR_LAST_MODIFIED,                  /**< RFC 2608, 2616 */
     HDR_LINK,                           /**< RFC 2068 */
     HDR_LOCATION,                       /**< RFC 2608, 2616 */