Open
Description
The Content-Disposition
header is a more complicated one, and coming up with an appropriate design that is easy and clear to use while also being efficient is important.
Where as most of the fields that can be set in CacheControl
(#3) are known, and can be represented in bitflags, the fields of a ContentDisposition
are typically strings. It'd be useful to be able to set these fields easily (not having to worry too much about converting to a valid HeaderValue
), without needing to make several copies when parsing.
One option is to add a ContentDisposition::builder()
, which can set the various fields, and the validity can be checked when build()
is called.