<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rfc [
  <!ENTITY nbsp "&#160;">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     ipr="trust200902"
     docName="draft-vijayvargiya-http-fetch-once-00"
     category="std"
     submissionType="IETF"
     consensus="true"
     version="3">

  <front>
    <title abbrev="FETCH-ONCE">The HTTP FETCH-ONCE Method</title>

    <seriesInfo name="Internet-Draft" value="draft-vijayvargiya-http-fetch-once-00"/>

    <author initials="K." surname="Vijayvargiya" fullname="Ketan Vijayvargiya">
      <organization>Individual Contributor</organization>
      <address>
        <email>Ketan.vijay1818@gmail.com</email>
      </address>
    </author>

    <date year="2026" month="May" day="1"/>

    <area>Applications and Real-Time</area>

    <workgroup>HTTP</workgroup>

    <keyword>HTTP</keyword>
    <keyword>method</keyword>
    <keyword>fetch-once</keyword>

    <abstract>
      <t>
        This document defines the HTTP FETCH-ONCE method. It allows a client
        to retrieve a resource and ensures that the resource is immediately
        deleted or invalidated after retrieval.
      </t>
    </abstract>
  </front>

  <middle>
    <section anchor="intro" numbered="true" toc="default">
      <name>Introduction</name>
      <t>
        Applications often require one-time access to sensitive data such as
        tokens or temporary links. Existing HTTP methods require multiple
        requests. FETCH-ONCE provides a single atomic operation that retrieves
        and invalidates a resource in one step.
      </t>
    </section>

    <section anchor="method" numbered="true" toc="default">
      <name>Method Definition</name>
      <t>
        The FETCH-ONCE method retrieves the target resource and then deletes
        or invalidates it immediately after access. The server MUST ensure
        that the operation is atomic so that only one client can successfully
        retrieve any given resource.
      </t>
    </section>

    <section anchor="security" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>
        Servers MUST ensure atomic behavior to prevent multiple retrievals.
        Implementations should consider race conditions and ensure that
        concurrent FETCH-ONCE requests for the same resource result in only
        one successful retrieval.
      </t>
    </section>

    <section anchor="iana" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>
        This document requests that IANA register the FETCH-ONCE method in
        the "HTTP Method Registry" maintained at
        &lt;https://www.iana.org/assignments/http-methods&gt;.
      </t>
    </section>
  </middle>

  <back>
    <references>
      <name>Normative References</name>
      <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9110.xml"/>
      <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
      <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
    </references>
  </back>

</rfc>
