New I-D: standard RateLimit headers and their relations with Retry-After

Roberto Polli <robipolli@gmail.com> Wed, 07 August 2019 09:35 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 226E31203A4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Aug 2019 02:35:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.8
X-Spam-Level:
X-Spam-Status: No, score=-2.8 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.201, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yrAxo6zyv2qq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Aug 2019 02:35:44 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 664EF120320 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 7 Aug 2019 02:35:44 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hvIJh-00070B-M6 for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Aug 2019 09:33:09 +0000
Resent-Date: Wed, 07 Aug 2019 09:33:09 +0000
Resent-Message-Id: <E1hvIJh-00070B-M6@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <robipolli@gmail.com>) id 1hvIJd-0006zT-Eu for ietf-http-wg@listhub.w3.org; Wed, 07 Aug 2019 09:33:05 +0000
Received: from mail-ua1-x943.google.com ([2607:f8b0:4864:20::943]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <robipolli@gmail.com>) id 1hvIJb-0001T9-Qn for ietf-http-wg@w3.org; Wed, 07 Aug 2019 09:33:05 +0000
Received: by mail-ua1-x943.google.com with SMTP id j21so34792253uap.2 for <ietf-http-wg@w3.org>; Wed, 07 Aug 2019 02:32:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aJI/O3M6PH0vqQc/Yc7nlI23GZbpTBtle7jO42LMl+s=; b=FwRp19F4U9Ml3RIuVZX9ZqFdCxXJSIKQxJHl4WJp5af9oyWGa1Nf53Fge5MoAhRUPW jdcIbtN9p7gVfkXnMPCFLBIJ04dl+s758A/VQlPV/Ez/6l+7l13JTXjYDFUWa9r9ZYKE mRgSfV07Axt21vkq4sgtzfTDeGplA97F7aBTcQcdXh09mZDm5buktQ3qD3dC/BHj9znr jYX/ndGs4vN/nqle2+ZNAcpDPT5kPc4k7kZsfFJDOO/rnP86IRA2SgtsGTDiGlXVdnWb QgmwR9l4EWzus4nd6i8XDaUozYucb3eoARYNwRVkF7G0yvj4W1u0B0tvRPKS5cRK6ag3 xWPg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aJI/O3M6PH0vqQc/Yc7nlI23GZbpTBtle7jO42LMl+s=; b=kV0/JthVgeNFjMCOfBBDOZGbDY8XbDiyG/jYuSn4VvUJktQ2m5rVb02/23Vnto2mir zdMv+sSNyA7/JBGp55h2Yf+Hvegkk/YRtudf9b3c8um5uBKGtLSVJpBW7G6HM+b75HsS AfAqpF49jEotTt9v7fg5B71Ov9WtAeZi+cZeNNuXIvbb0NeVuAnYkP0P2dh8119kU9YQ NLG8AxtI4OCmnZuO0/8Myqm4Db3VeqmXyBrPaCRFT0k+Af+Gsv8elvZXZ9qP45MRQ2gf dQnp8aDjscxzI6LrETRROS0Ze4lCH341CivsgtrM6HT/PO9GH1LcU6YTw4b0D7pQgb1x PjiQ==
X-Gm-Message-State: APjAAAXylPAYFTldjqcgDVuom3/ZyqeeHJdMLJGiRmGXUb4d7tKGUftK y6/nK5tzGROt3mWbUwwwiUg9Fuvtl9Nt7kNrI4bmZXYx31Y=
X-Google-Smtp-Source: APXvYqxB5niSh2cpv1vti/EoThVu8iouApA+DiwgUiiLRHnqwKTRBHezLoaH0/JVXH8c2dtCfVsesM1SZqwKAlyWIL0=
X-Received: by 2002:ab0:3359:: with SMTP id h25mr5166100uap.132.1565170362726; Wed, 07 Aug 2019 02:32:42 -0700 (PDT)
MIME-Version: 1.0
From: Roberto Polli <robipolli@gmail.com>
Date: Wed, 07 Aug 2019 11:32:29 +0200
Message-ID: <CAP9qbHXxG2RmU=+QrxwkN2pJOEUQH4oRrv7TMxkDGbZ8MDi16A@mail.gmail.com>
To: ietf-http-wg@w3.org
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::943; envelope-from=robipolli@gmail.com; helo=mail-ua1-x943.google.com
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1hvIJb-0001T9-Qn 9818429ab6a58dd74543ad627a29ecf0
X-Original-To: ietf-http-wg@w3.org
Subject: New I-D: standard RateLimit headers and their relations with Retry-After
Archived-At: <https://www.w3.org/mid/CAP9qbHXxG2RmU=+QrxwkN2pJOEUQH4oRrv7TMxkDGbZ8MDi16A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36938
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi @all,

I'm writing a new I-D to standardize `RateLimit-*` headers.
I had some positive feedback from Erik Wilde, so I'm posting here :)

The document defines the RateLimit-Limit, RateLimit-Remaining,
RateLimit-Reset header fields for HTTP, thus allowing servers to
publish current request quotas and clients to shape their request
policy avoiding being throttled out.

The draft is here:

-  https://tinyurl.com/draft-ratelimit-html

If you are interested, feel free to comment PRs and file issues!
If you have any questions don't hesitate to ask :)

Thanks and have a nice day,
R