Binary Representation of HTTP Messages
draft-thomson-http-binary-message-00

Document Type Active Internet-Draft (individual)
Authors Martin Thomson  , Christopher Wood 
Last updated 2021-01-27
Stream (None)
Intended RFC status (None)
Formats plain text html xml pdf htmlized (tools) htmlized 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)
HTTPBIS                                                       M. Thomson
Internet-Draft                                                   Mozilla
Intended status: Standards Track                               C.A. Wood
Expires: 1 August 2021                                        Cloudflare
                                                         28 January 2021

                 Binary Representation of HTTP Messages
                  draft-thomson-http-binary-message-00

Abstract

   This document defines a binary format for representing HTTP messages.

Discussion Venues

   This note is to be removed before publishing as an RFC.

   Discussion of this document takes place on the HTTP Working Group
   mailing list (http@ietf.org), which is archived at
   https://mailarchive.ietf.org/arch/browse/http/.

   Source for this draft and an issue tracker can be found at
   https://github.com/unicorn-wg/oblivious-http.

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 1 August 2021.

Copyright Notice

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

Thomson & Wood            Expires 1 August 2021                 [Page 1]
Internet-Draft            Binary HTTP Messages              January 2021

   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  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Conventions and Definitions . . . . . . . . . . . . . . . . .   3
   3.  Format  . . . . . . . . . . . . . . . . . . . . . . . . . . .   3
     3.1.  Known Length Messages . . . . . . . . . . . . . . . . . .   4
     3.2.  Indeterminate Length Messages . . . . . . . . . . . . . .   5
     3.3.  Framing Indicator . . . . . . . . . . . . . . . . . . . .   6
     3.4.  Request Control Data  . . . . . . . . . . . . . . . . . .   6
     3.5.  Response Control Data . . . . . . . . . . . . . . . . . .   7
       3.5.1.  Informational Status Codes  . . . . . . . . . . . . .   7
     3.6.  Header and Trailer Field Lines  . . . . . . . . . . . . .   8
     3.7.  Content . . . . . . . . . . . . . . . . . . . . . . . . .   9
   4.  Invalid Messages  . . . . . . . . . . . . . . . . . . . . . .   9
   5.  Examples  . . . . . . . . . . . . . . . . . . . . . . . . . .   9
     5.1.  Request Example . . . . . . . . . . . . . . . . . . . . .   9
     5.2.  Response Example  . . . . . . . . . . . . . . . . . . . .  11
   6.  "message/bhttp" Media Type  . . . . . . . . . . . . . . . . .  13
   7.  Security Considerations . . . . . . . . . . . . . . . . . . .  14
   8.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  14
   9.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  14
     9.1.  Normative References  . . . . . . . . . . . . . . . . . .  14
     9.2.  Informative References  . . . . . . . . . . . . . . . . .  15
   Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . .  16
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  16

1.  Introduction

   This document defines a simple format for representing an HTTP
   message ([HTTP]), either request or response.  This allows for the
   encoding of HTTP messages that can be conveyed outside of an HTTP
   protocol.  This enables the transformation of entire messages,
   including the application of authenticated encryption.

   This format is informed by the framing structure of HTTP/2 ([H2]) and
   HTTP/3 ([H3]).  In comparison, this format simpler by virtue of not
   including either header compression ([HPACK], [QPACK]) or a generic
   framing layer.

Thomson & Wood            Expires 1 August 2021                 [Page 2]
Internet-Draft            Binary HTTP Messages              January 2021

   This format provides an alternative to the "message/http" content
Show full document text