range_header

version 1.0.0 build status coverage: 100%

Range header parser for Dart.

Usage

handleRequest(HttpRequest request) async {
  // Parse the header
  var header = parseRangeHeader(request.headers.value(HttpHeaders.RANGE));
  
  // Get info
  header.items;
  header.rangeUnit;
  header.toContentRange();
}

This package powers package:angel_range as well.

Libraries

range_header