Skip to main content
Module

x/oak_commons/server_sent_event.ts>ServerSentEventStreamTarget#asResponseInit

A set of APIs for handling HTTP and HTTPS requests with Deno 🐿️ 🦕
Go to Latest
method ServerSentEventStreamTarget.prototype.asResponseInit
import { ServerSentEventStreamTarget } from "https://deno.land/x/oak_commons@0.6.0/server_sent_event.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]