Skip to main content
Module

x/dext/deps/mod.ts>oak.ApplicationOptions

The Preact Framework for Deno
Latest
interface oak.ApplicationOptions
import { type oak } from "https://deno.land/x/dext@0.10.5/deps/mod.ts";
const { ApplicationOptions } = oak;

Properties

optional
keys: KeyStack | Key[]

An initial set of keys (or instance of KeyGrip) to be used for signing cookies produced by the application.

optional
proxy: boolean

If set to true, proxy headers will be trusted when processing requests. This defaults to false.

optional
serve: Serve

The server() function to be used to read requests.

Not used generally, as this is just for mocking for test purposes

optional
serveTls: ServeTls

The server() function to be used to read requests.

Not used generally, as this is just for mocking for test purposes

optional
state: S

The initial state object for the application, of which the type can be used to infer the type of the state for both the application and any of the application's context.