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

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

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

RESTService internal HTTP request parameters.

Properties

optional
method: HTTPMethod

The HTTP method to request with. Custom methods are not supported.

url: string | URL

The URL for the request, if it is string and contains aliases, it will be formatted.

optional
query: Record<string, unknown> | URLSearchParams

The search params to add to the URL.

optional
headers: Record<string, unknown> | Headers

The headers of the request.

optional
expect: ExpectContentType

The data type to expect as the response body.

optional
camelizeResponse: boolean

Whether it should camelize the response. Default is true if it starts with {BEDEV.

optional
includeCredentials: boolean

Whether to include credentials.

Body content. Only valid if it's included with a request that isn't OPTIONS or GET.