x/oak/response.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function convertBodyToBodyInit
import { convertBodyToBodyInit } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/response.ts?s=convertBodyToBodyInit";

Parameters

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

Returns

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