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

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

Parameters

optional
responseInit: ResponseInit

Returns

Response