Skip to content

RESUMABLE: Redefine Upload-Complete on the server side#3404

Open
guoye-zhang wants to merge 1 commit intohttpwg:mainfrom
guoye-zhang:response-upload-complete
Open

RESUMABLE: Redefine Upload-Complete on the server side#3404
guoye-zhang wants to merge 1 commit intohttpwg:mainfrom
guoye-zhang:response-upload-complete

Conversation

@guoye-zhang
Copy link
Copy Markdown
Contributor

@guoye-zhang guoye-zhang commented Mar 26, 2026

Discussed during IETF125. Refining the Upload-Complete response header to differentiate the final response from the responses from the upload resource. Also allowing the final response to arrive early.

Resolves #3398


An upload is marked as completed if a request for creating the upload resource ({{upload-creation}}) or appending to it ({{upload-appending}}) included the `Upload-Complete` header field with a true value and the request content was fully processed.

The `Upload-Complete` response header field distinguishes the response from the initial targeted resource or the temporary upload resource. The value of true means the response is from the the initial targeted resource, and the value of false means the response is from the temporary upload resource. It is worth noting that `Upload-Complete` can be true even if the upload is not complete if the targeted resource decides to generate an early response.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is worth noting that Upload-Complete can be true even if the upload is not complete

This is confusing, especially since arguably Upload-Complete being true defines the notion that the upload was completed in some sense. How about this (also fixed a typo, "the the"):

Suggested change
The `Upload-Complete` response header field distinguishes the response from the initial targeted resource or the temporary upload resource. The value of true means the response is from the the initial targeted resource, and the value of false means the response is from the temporary upload resource. It is worth noting that `Upload-Complete` can be true even if the upload is not complete if the targeted resource decides to generate an early response.
The `Upload-Complete` response header field distinguishes the response from the initial targeted resource or the temporary upload resource. The value of true means the response is from the initial targeted resource, and the value of false means the response is from the temporary upload resource. It is worth noting that `Upload-Complete` can be true even when the full representation data was not received if the targeted resource decides to generate an early response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

RESUMABLE: Early response handling

2 participants