ember-nexus / api

Knowledge Graph API
https://ember-nexus.github.io/api
Other
12 stars 3 forks source link

HTTP OPTIONS /<uuid>/file OptionsFileController #91

Open Syndesi opened 1 year ago

Syndesi commented 1 year ago

Part of the tus standard.

An OPTIONS request MAY be used to gather information about the Server's current configuration. A successful response indicated by the 204 No Content or 200 OK status MUST contain the Tus-Version header. It MAY include the Tus-Extension and Tus-Max-Size headers.

The Client SHOULD NOT include the Tus-Resumable header in the request and the Server MUST ignore the header. Example

This example clarifies the response for an OPTIONS request. The version used in the response is 1.0.0 while the Server is also capable of handling 0.2.2 and 0.2.1. Uploads with a total size of up to 1GB are allowed and the extensions for Creation and Expiration are enabled.

Request:

OPTIONS /<uuid>/file HTTP/1.1
Host: tus.example.org

Response:

HTTP/1.1 204 No Content
Tus-Resumable: 1.0.0
Tus-Version: 1.0.0,0.2.2,0.2.1
Tus-Max-Size: 1073741824
Tus-Extension: creation,expiration
Syndesi commented 7 months ago

Note: Uploads will be handled by separate endpoints. OPTIONS /<uuid>/file should respond normally.