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: HTTPMethodThe 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> | URLSearchParamsThe search params to add to the URL.
optional
headers: Record<string, unknown> | HeadersThe headers of the request.
optional
expect: ExpectContentTypeThe data type to expect as the response body.
Whether it should camelize the response. Default is true
if it starts with {BEDEV
.
optional
body: HTTPRequestBodyContentBody content. Only valid if it's included with a request that isn't OPTIONS
or GET
.