import type { Handlers } from "$fresh/server.ts"; export const handler: Handlers = { GET(_, ctx) { const headers = new Headers(); headers.set("x-foo", "Hello world!"); return ctx.render(undefined, { headers }); }, }; export default function Home() { return (
Should have X-Foo header set.
); }