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
Latest
method Response.prototype.addResource
import { Response } from "https://deno.land/x/oak@v17.1.3/response.ts";

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

Parameters

resource: { close(): void; }