add a function to generate a Content-Disposition header
export memory functions