Go to Latest
method ServerSentEventStreamTarget.prototype.asResponseInit
import { ServerSentEventStreamTarget } from "https://dotland.deno.dev/std@0.181.0/http/mod.ts";

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

Parameters

optional
responseInit: ResponseInit = [UNSUPPORTED]

Returns

[BodyInit, ResponseInit]