tus-header-parser
Express middleware that parses Tus
headers and sets
them on req.tus
.
- Ignores syntactically invalid headers
- Object keys are header names which have been converted to camelCase
Parsed headers:
Tus-Resumable, Upload-Offset, Upload-Length, Upload-Metadata, Upload-Defer-Length, Upload-Checksum, Upload-Concat
Install
npm install --save tus-header-parser
Requires Node v6+
Usage
See ./test directory for usage examples.
// ...appapp