An HTTP Status Code for Indicating Hints
draft-ietf-httpbis-early-hints-04

Document Type Active Internet-Draft (httpbis WG)
Last updated 2017-08-30 (latest revision 2017-07-11)
Stream IETF
Intended RFC status Experimental
Formats plain text pdf html bibtex
Reviews SECDIR, OPSDIR will not review this version
Stream WG state Submitted to IESG for Publication
Document shepherd Mark Nottingham
Shepherd write-up Show (last changed 2017-06-20)
IESG IESG state IESG Evaluation::Revised I-D Needed
Consensus Boilerplate Yes
Telechat date
Has enough positions to pass.
Responsible AD Alexey Melnikov
Send notices to Mark Nottingham <mnot@mnot.net>
IANA IANA review state IANA OK - Actions Needed
IANA action state None
HTTP Working Group                                                K. Oku
Internet-Draft                                                    Fastly
Intended status: Experimental                              July 11, 2017
Expires: January 12, 2018

                An HTTP Status Code for Indicating Hints
                   draft-ietf-httpbis-early-hints-04

Abstract

   This memo introduces an informational HTTP status code that can be
   used to convey hints that help a client make preparations for
   processing the final response.

Note to Readers

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

   Working Group information can be found at https://httpwg.github.io/ ;
   source code and issues list for this draft can be found at
   https://github.com/httpwg/http-extensions/labels/early-hints .

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 http://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 January 12, 2018.

Copyright Notice

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

Oku                     Expires January 12, 2018                [Page 1]
Internet-Draft                 Early Hints                     July 2017

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://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
     1.1.  Notational Conventions  . . . . . . . . . . . . . . . . .   3
   2.  103 Early Hints . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Security Considerations . . . . . . . . . . . . . . . . . . .   4
   4.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   5
   5.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   5
     5.1.  Normative References  . . . . . . . . . . . . . . . . . .   5
     5.2.  Informative References  . . . . . . . . . . . . . . . . .   5
   Appendix A.  Changes  . . . . . . . . . . . . . . . . . . . . . .   6
     A.1.  Since draft-ietf-httpbis-early-hints-03 . . . . . . . . .   6
     A.2.  Since draft-ietf-httpbis-early-hints-02 . . . . . . . . .   6
     A.3.  Since draft-ietf-httpbis-early-hints-01 . . . . . . . . .   6
     A.4.  Since draft-ietf-httpbis-early-hints-00 . . . . . . . . .   6
   Appendix B.  Acknowledgements . . . . . . . . . . . . . . . . . .   6
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .   6

1.  Introduction

   It is common for HTTP responses to contain links to external
   resources that need to be fetched prior to their use; for example,
   rendering HTML by a Web browser.  Having such links available to the
   client as early as possible helps to minimize perceived latency.

   The "preload" ([Preload]) link relation can be used to convey such
   links in the Link header field of an HTTP response.  However, it is
   not always possible for an origin server to generate the header block
   of a final response immediately after receiving a request.  For
   example, the origin server might delegate a request to an upstream
   HTTP server running at a distant location, or the status code might
   depend on the result of a database query.

   The dilemma here is that even though it is preferable for an origin
   server to send some header fields as soon as it receives a request,
   it cannot do so until the status code and the full header fields of
   the final HTTP response are determined.

Oku                     Expires January 12, 2018                [Page 2]
Internet-Draft                 Early Hints                     July 2017
Show full document text