Module

x/oak/deps.ts>ServerSentEventStreamTarget#asResponse

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
method ServerSentEventStreamTarget.prototype.asResponse
import { ServerSentEventStreamTarget } from "https://dotland.deno.dev/x/oak@v12.6.1/deps.ts";

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

Parameters

optional
responseInit: ResponseInit