Output.addHeader

void addHeader(in string key, in string value) @safe

Add a http header. You can't set content-length, date, server, status or transfer-encoding headers. They are managed by serverino internally. Throws if the name is not a valid header name or the value contains \r, \n or \0.

// Set content-type to json, default is text/html
output.addHeader("content-type", "application/json");
output.addHeader("expire", 3.days);

void addHeader(in string key, in Duration dur) @safe

Ditto

void addHeader(in string key, in SysTime time) @safe

Ditto