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

x/live/utils/invoke.ts>invokeToHttpResponse

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
variable invokeToHttpResponse
import { invokeToHttpResponse } from "https://deno.land/x/live@1.41.11/utils/invoke.ts";

Converts an invoke result to a valid http response based on the return type

type

(req: Request, invokeResponse: unknown) => Response