Module

x/oak/response.ts>convertBodyToBodyInit

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function convertBodyToBodyInit
import { convertBodyToBodyInit } from "https://dotland.deno.dev/x/oak@v12.2.0/response.ts";

Parameters

optional
type: string
optional
jsonBodyReplacer: (key: string, value: unknown) => unknown

Returns

Promise<[globalThis.BodyInit | undefined, string | undefined]>