Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dynablox_opencloud/src/rest/RESTController.ts>HTTPRequestBodyContent

A Roblox OpenCloud API wrapper for Deno and NodeJS written in TypeScript.
Latest
type alias HTTPRequestBodyContent
import { type HTTPRequestBodyContent } from "https://deno.land/x/dynablox_opencloud@v0.2.2/src/rest/RESTController.ts";

Body content with allowed types.

NOTE: This isn't split into interfaces because it looks nicer.

definition:
| { type: "json"; lua?: boolean; value: unknown; }
| { type: "text"; value: string; }
| { type: "formdata"; value: Record<string, FormDataSetRequest>; }
| { type: "file"; value: Uint8Array; }
| { type: "urlencoded"; value: URLSearchParams | Record<string, string>; }
| { type: "unknown"; value: unknown; }