Skip to content

RequestUrlParam

Official

The parameters for the requestUrl function.

Import:

import type { RequestUrlParam } from 'obsidian';

Signature:

export interface RequestUrlParam

Properties

Property Type Description
body? ArrayBuffer | string The body of the request.
contentType? string The content type of the request.
headers? Record<string, string> The headers of the request.
method? string The method to use for the request.
throw? boolean Whether to throw an error when the status code is 400+.
url string The URL to request.