Skip to main content
Module

x/oak_commons/server_sent_event.ts>ServerSentEventStreamTarget#asResponse

A set of APIs for handling HTTP and HTTPS requests with Deno 🐿️ 🦕
Go to Latest
method ServerSentEventStreamTarget.prototype.asResponse
import { ServerSentEventStreamTarget } from "https://deno.land/x/oak_commons@0.6.0/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