Vibe-D File Question

James Blachly james.blachly at gmail.com
Fri Sep 11 13:03:16 UTC 2020


On 9/11/20 7:28 AM, Daniel Kozak wrote:
> void fun(HTTPServerRequest req, HTTPServerResponse res) nothrow
> {
> try
> {
> res.headers["Content-Disposition"] = "filename=\"muj.csv\"";
> res.writeBody("some;csv;data", "text/csv");
> }
> catch (Exception e)
> {}
> }

Selim, note the Content-Disposition header in particular.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition


More information about the Digitalmars-d-learn mailing list