Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oak/deps.ts>ServerSentEventStreamTarget#asResponseInit

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
method ServerSentEventStreamTarget.prototype.asResponseInit
import { ServerSentEventStreamTarget } from "https://deno.land/x/oak@13.2.4/deps.ts";

Returns a tuple which contains the BodyInit and ResponseInit needed to create a response that will establish a SSE connection with the client.

Parameters

optional
responseInit: ResponseInit = [UNSUPPORTED]