Bundled HTTP Exchanges
draft-yasskin-wpack-bundled-exchanges-00

Document Type Active Internet-Draft (individual)
Last updated 2018-06-13
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                         J. Yasskin
Internet-Draft                                                    Google
Intended status: Standards Track                           June 13, 2018
Expires: December 15, 2018

                         Bundled HTTP Exchanges
                draft-yasskin-wpack-bundled-exchanges-00

Abstract

   Bundled exchanges provide a way to bundle up groups of HTTP
   request+response pairs to transmit or store them together.  They can
   include multiple top-level resources with one identified as the
   default by a manifest, provide random access to their component
   exchanges, and efficiently store 8-bit resources.

Note to Readers

   Discussion of this draft takes place on the ART area mailing list
   (art@ietf.org), which is archived at
   https://mailarchive.ietf.org/arch/search/?email_list=art [1].

   The source code and issues list for this draft can be found in
   https://github.com/WICG/webpackage [2].

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/.

   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 December 15, 2018.

Copyright Notice

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

Yasskin                 Expires December 15, 2018               [Page 1]
Internet-Draft           Bundled HTTP Exchanges                June 2018

   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.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   3
     1.2.  Mode of specification . . . . . . . . . . . . . . . . . .   3
   2.  Semantics . . . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Stream attributes and operations  . . . . . . . . . . . .   4
     2.2.  Load a bundle's metadata  . . . . . . . . . . . . . . . .   4
       2.2.1.  Load a bundle's metadata from the end . . . . . . . .   5
     2.3.  Load a response from a bundle . . . . . . . . . . . . . .   5
   3.  Format  . . . . . . . . . . . . . . . . . . . . . . . . . . .   5
     3.1.  Top-level structure . . . . . . . . . . . . . . . . . . .   5
     3.2.  Load a bundle's metadata  . . . . . . . . . . . . . . . .   6
       3.2.1.  Parsing the index section . . . . . . . . . . . . . .   8
       3.2.2.  Parsing the manifest section  . . . . . . . . . . . .   9
       3.2.3.  Parsing the critical section  . . . . . . . . . . . .  10
       3.2.4.  The responses section . . . . . . . . . . . . . . . .  10
       3.2.5.  Starting from the end . . . . . . . . . . . . . . . .  10
     3.3.  Load a response from a bundle . . . . . . . . . . . . . .  11
     3.4.  Parsing CBOR items  . . . . . . . . . . . . . . . . . . .  13
       3.4.1.  Parse a known-length item . . . . . . . . . . . . . .  13
       3.4.2.  Parsing variable-length data from a bytestring  . . .  13
     3.5.  Interpreting CBOR HTTP headers  . . . . . . . . . . . . .  14
   4.  Guidelines for bundle authors . . . . . . . . . . . . . . . .  15
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .  15
   6.  IANA considerations . . . . . . . . . . . . . . . . . . . . .  16
     6.1.  Internet Media Type Registration  . . . . . . . . . . . .  16
     6.2.  Web Bundle Section Name Registry  . . . . . . . . . . . .  17
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  17
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .  17
     7.2.  Informative References  . . . . . . . . . . . . . . . . .  19
     7.3.  URIs  . . . . . . . . . . . . . . . . . . . . . . . . . .  19
   Appendix A.  Acknowledgements . . . . . . . . . . . . . . . . . .  19
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  19

Yasskin                 Expires December 15, 2018               [Page 2]
Show full document text