Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method ServerSentEventStreamTarget.prototype.asResponse
import { ServerSentEventStreamTarget } from "https://deno.land/std@0.197.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