tus_client_extra/
headers.rs

1/// Indicates a byte offset withing a resource.
2pub const UPLOAD_OFFSET: &'static str = "upload-offset";
3
4/// Indicates the size of the entire upload in bytes.
5pub const UPLOAD_LENGTH: &'static str = "upload-length";
6
7/// A comma-separated list of protocol versions supported by the server.
8pub const TUS_VERSION: &'static str = "tus-version";
9
10/// The version of the protocol used by the client or the server.
11pub const TUS_RESUMABLE: &'static str = "tus-resumable";
12
13/// A comma-separated list of the extensions supported by the server.
14pub const TUS_EXTENSION: &'static str = "tus-extension";
15
16/// Integer indicating the maximum allowed size of an entire upload in bytes.
17pub const TUS_MAX_SIZE: &'static str = "tus-max-size";
18
19/// Use this header if its environment does not support the PATCH or DELETE methods.
20pub const X_HTTP_METHOD_OVERRIDE: &'static str = "x-http-method-override";
21
22/// Use this header if its environment does not support the PATCH or DELETE methods.
23pub const CONTENT_TYPE: &'static str = "content-type";
24
25/// Use this header if its environment does not support the PATCH or DELETE methods.
26//pub const UPLOAD_DEFER_LENGTH: &'static str = "upload-defer-length";
27
28/// Use this header if its environment does not support the PATCH or DELETE methods.
29pub const UPLOAD_METADATA: &'static str = "upload-metadata";
30
31/// Use this header if its environment does not support the PATCH or DELETE methods.
32pub const LOCATION: &'static str = "location";