Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method ServerSentEventStreamTarget.prototype.asResponse
import { ServerSentEventStreamTarget } from "https://deno.land/std@0.201.0/http/mod.ts";

Returns a Response which contains the body and headers needed to initiate a SSE connection with the client.

Parameters

optional
responseInit: ResponseInit