Skip to main content
Module

x/acorn/mod.ts>RouterOptions

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
interface RouterOptions
import { type RouterOptions } from "https://deno.land/x/acorn@0.1.1/mod.ts";

Properties

optional
keys: KeyRing

A key ring which will be used for signing and validating cookies.

optional
preferJson: boolean

When providing internal responses, like on unhandled errors, prefer JSON responses to HTML responses. When set to false HTML will be preferred when responding, but content type negotiation will still be respected. Defaults to true.