Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak/response.ts>Response#addResource

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Go to Latest
method Response.prototype.addResource
import { Response } from "https://deno.land/x/oak@v16.1.0/response.ts";

Add a resource to the list of resources that will be closed when the request is destroyed.

Parameters

resource: { close(): void; }