Package me.desair.tus.server
Class HttpHeader
java.lang.Object
me.desair.tus.server.HttpHeader
Class that will hold constants for all HTTP headers relevant to the tus v1.0.0 protocol
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
The X-HTTP-Method-Override request header MUST be a string which MUST be interpreted as the request’s method by the Server, if the header is presented.static final String
The Transfer-Encoding header specifies the form of encoding used to safely transfer the entity to the user.static final String
The Tus-Checksum-Algorithm response header MUST be a comma-separated list of the checksum algorithms supported by the server.static final String
The Tus-Extension response header MUST be a comma-separated list of the extensions supported by the Server.static final String
The Tus-Max-Size response header MUST be a non-negative integer indicating the maximum allowed size of an entire upload in bytes.static final String
The Tus-Resumable header MUST be included in every request and response except for OPTIONS requests.static final String
The Tus-Version response header MUST be a comma-separated list of protocol versions supported by the Server.static final String
The Upload-Checksum request header contains information about the checksum of the current body payload.static final String
The Upload-Concat request and response header MUST be set in both partial and upload creation requests.static final String
The Upload-Defer-Length request and response header indicates that the size of the upload is not known currently and will be transferred later.static final String
The Upload-Expires response header indicates the time after which the unfinished upload expires.static final String
The Upload-Length request and response header indicates the size of the entire upload in bytes.static final String
static final String
The Upload-Offset request and response header indicates a byte offset within a resource.static final String
The X-Forwarded-For (XFF) HTTP header field is a common method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer. -
Method Summary
-
Field Details
-
METHOD_OVERRIDE
The X-HTTP-Method-Override request header MUST be a string which MUST be interpreted as the request’s method by the Server, if the header is presented. The actual method of the request MUST be ignored. The Client SHOULD use this header if its environment does not support the PATCH or DELETE methods.- See Also:
-
CACHE_CONTROL
- See Also:
-
CONTENT_TYPE
- See Also:
-
CONTENT_LENGTH
- See Also:
-
CONTENT_DISPOSITION
- See Also:
-
LOCATION
- See Also:
-
TRANSFER_ENCODING
The Transfer-Encoding header specifies the form of encoding used to safely transfer the entity to the user.- See Also:
-
UPLOAD_OFFSET
The Upload-Offset request and response header indicates a byte offset within a resource. The value MUST be a non-negative integer.- See Also:
-
UPLOAD_METADATA
- See Also:
-
UPLOAD_CHECKSUM
The Upload-Checksum request header contains information about the checksum of the current body payload. The header MUST consist of the name of the used checksum algorithm and the Base64 encoded checksum separated by a space.- See Also:
-
UPLOAD_LENGTH
The Upload-Length request and response header indicates the size of the entire upload in bytes. The value MUST be a non-negative integer.- See Also:
-
UPLOAD_EXPIRES
The Upload-Expires response header indicates the time after which the unfinished upload expires. The value of the Upload-Expires header MUST be in RFC 7231 (https://tools.ietf.org/html/rfc7231#section-7.1.1.1) datetime format.- See Also:
-
UPLOAD_DEFER_LENGTH
The Upload-Defer-Length request and response header indicates that the size of the upload is not known currently and will be transferred later. Its value MUST be 1. If the length of an upload is not deferred, this header MUST be omitted.- See Also:
-
UPLOAD_CONCAT
The Upload-Concat request and response header MUST be set in both partial and upload creation requests. It indicates whether the upload is either a partial or upload.- See Also:
-
TUS_VERSION
The Tus-Version response header MUST be a comma-separated list of protocol versions supported by the Server. The list MUST be sorted by Server’s preference where the first one is the most preferred one.- See Also:
-
TUS_RESUMABLE
The Tus-Resumable header MUST be included in every request and response except for OPTIONS requests. The value MUST be the version of the protocol used by the Client or the Server.- See Also:
-
TUS_EXTENSION
The Tus-Extension response header MUST be a comma-separated list of the extensions supported by the Server. If no extensions are supported, the Tus-Extension header MUST be omitted.- See Also:
-
TUS_MAX_SIZE
The Tus-Max-Size response header MUST be a non-negative integer indicating the maximum allowed size of an entire upload in bytes. The Server SHOULD set this header if there is a known hard limit.- See Also:
-
TUS_CHECKSUM_ALGORITHM
The Tus-Checksum-Algorithm response header MUST be a comma-separated list of the checksum algorithms supported by the server.- See Also:
-
X_FORWARDED_FOR
The X-Forwarded-For (XFF) HTTP header field is a common method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer.- See Also:
-