Web client - set the http mime headers sent to the client when downloading an attached file of a document?

I saw that when a web client downloads a file attached in a document, the http headers that are sent back to him by Domino are really minimal. I want to customize these headers for mainly two reasons :- for text files, add a content-type: (WITH charset)

  • for certain binary files, add a mime header that forces the download (content-disposition: attachment; filename=… as described in Microsoft Support)

How can that be done ?