Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/windmill-api/http/http.ts>ResponseContext#getBodyAsAny

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
method ResponseContext.prototype.getBodyAsAny
import { ResponseContext } from "https://deno.land/x/windmill@v1.32.0/windmill-api/http/http.ts";

Use a heuristic to get a body of unknown data structure. Return as string if possible, otherwise as binary.

Returns

Promise<string | Blob | undefined>