x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface ServerSentEventInit
implements EventInit
import { type ServerSentEventInit } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?p=prototype.options&s=ServerSentEventInit";

Properties

optional
id: number
[src]

An optional id which will be sent with the event and exposed in the client EventSource.

optional
replacer: (string | number)[] | ((
this: any,
key: string,
value: any,
) => any)
[src]

The replacer is passed to JSON.stringify when converting the data property to a JSON string.

optional
space: string | number
[src]

Space is passed to JSON.stringify when converting the data property to a JSON string.