import { Response } from "https://deno.land/x/doa@v1.0.0/response.ts";
Set header field
to val
, or pass
an object of header fields.
Examples:
this.set('Foo', ['bar', 'baz']); this.set('Accept', 'application/json'); this.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' });