Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express framework

// parse header from request
const range = req.range(1000)

// the type of the range
if (range.type === 'bytes') {
  // the ranges
  range.forEach((r) => {
    // do something with r.start and r.end
  })
}
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #framework
ADD COMMENT
Topic
Name
9+7 =