content_disposition library

Cross-platform parser for the HTTP Content-Disposition header.

Pure Dart (no dart:io), so it works on web, mobile and desktop alike. Implements the parts of RFC 6266 that matter in practice: the disposition type and the filename / filename* parameters, with filename* (RFC 5987 extended notation) taking precedence over the plain filename.

Classes

ContentDisposition
A parsed Content-Disposition header.