Skip to content

RequestUrlParam

Official

The parameters for the requestUrl function.

Import:

import type { RequestUrlParam } from 'obsidian';

Signature:

export interface RequestUrlParam

Properties

PropertyTypeDescription
body?ArrayBuffer | stringThe body of the request.
contentType?stringThe content type of the request.
headers?Record<string, string>The headers of the request.
method?stringThe method to use for the request.
throw?booleanWhether to throw an error when the status code is 400+.
urlstringThe URL to request.