Structured Headers for HTTP
draft-ietf-httpbis-header-structure-13

Document Type Active Internet-Draft (httpbis WG)
Last updated 2019-08-25
Replaces draft-nottingham-structured-headers, draft-ietf-httpbis-jfv, draft-kamp-httpbis-structure
Stream IETF
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream WG state WG Document
Document shepherd Patrick McManus
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to Patrick McManus <mcmanus@ducksong.com>
HTTP                                                       M. Nottingham
Internet-Draft                                                    Fastly
Intended status: Standards Track                               P-H. Kamp
Expires: February 25, 2020                     The Varnish Cache Project
                                                         August 24, 2019

                      Structured Headers for HTTP
                 draft-ietf-httpbis-header-structure-13

Abstract

   This document describes a set of data types and associated algorithms
   that are intended to make it easier and safer to define and handle
   HTTP header fields.  It is intended for use by specifications of new
   HTTP header fields that wish to use a common syntax that is more
   restrictive than traditional HTTP field values.

Note to Readers

   _RFC EDITOR: please remove this section before publication_

   Discussion of this draft takes place on the HTTP working group
   mailing list (ietf-http-wg@w3.org), which is archived at
   https://lists.w3.org/Archives/Public/ietf-http-wg/ [1].

   Working Group information can be found at https://httpwg.github.io/
   [2]; source code and issues list for this draft can be found at
   https://github.com/httpwg/http-extensions/labels/header-structure
   [3].

   Tests for implementations are collected at https://github.com/httpwg/
   structured-header-tests [4].

   Implementations are tracked at https://github.com/httpwg/wiki/wiki/
   Structured-Headers [5].

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

Nottingham & Kamp       Expires February 25, 2020               [Page 1]
Internet-Draft         Structured Headers for HTTP           August 2019

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on February 25, 2020.

Copyright Notice

   Copyright (c) 2019 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Intentionally Strict Processing . . . . . . . . . . . . .   4
     1.2.  Notational Conventions  . . . . . . . . . . . . . . . . .   4
   2.  Defining New Structured Headers . . . . . . . . . . . . . . .   5
   3.  Structured Header Data Types  . . . . . . . . . . . . . . . .   6
     3.1.  Lists . . . . . . . . . . . . . . . . . . . . . . . . . .   7
     3.2.  Dictionaries  . . . . . . . . . . . . . . . . . . . . . .   8
     3.3.  Items . . . . . . . . . . . . . . . . . . . . . . . . . .   9
     3.4.  Integers  . . . . . . . . . . . . . . . . . . . . . . . .   9
     3.5.  Floats  . . . . . . . . . . . . . . . . . . . . . . . . .   9
     3.6.  Strings . . . . . . . . . . . . . . . . . . . . . . . . .  10
     3.7.  Tokens  . . . . . . . . . . . . . . . . . . . . . . . . .  11
     3.8.  Byte Sequences  . . . . . . . . . . . . . . . . . . . . .  11
     3.9.  Booleans  . . . . . . . . . . . . . . . . . . . . . . . .  11
   4.  Working With Structured Headers in Textual HTTP Headers . . .  12
     4.1.  Serializing Structured Headers  . . . . . . . . . . . . .  12
     4.2.  Parsing Header Fields into Structured Headers . . . . . .  18
   5.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  27
   6.  Security Considerations . . . . . . . . . . . . . . . . . . .  27
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  27
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .  27
     7.2.  Informative References  . . . . . . . . . . . . . . . . .  28
     7.3.  URIs  . . . . . . . . . . . . . . . . . . . . . . . . . .  29
   Appendix A.  Acknowledgements . . . . . . . . . . . . . . . . . .  29

Nottingham & Kamp       Expires February 25, 2020               [Page 2]
Internet-Draft         Structured Headers for HTTP           August 2019
Show full document text