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.205.0/http/unstable_server_sent_event.ts";

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

Parameters

optional
responseInit: ResponseInit