Skip to main content
Home
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
76%
Published
2 years ago (1.0.0)
interface FRequestInit
extends RequestInit

FRequestInit is the configuration object for a Fetchling resource, based on the RequestInit arguments to the fetch API. Any arguments that can be passed to fetch() can be used to configure Fetchling requests.

Properties

Whether or not fetchling should attempt to automatically parse the body of a response, depending on the "Accept" header of the request. Defaults to true.

optional
json: boolean

If set to true, automatically set the "Accept" header of the request to "application/json". Also sets parseBody to true, so Fetchling will auto- parse response bodies (as JSON). Default false.

optional
jsonBody: any

A JavaScript object that should be serialized with JSON.stringify. Will also set the "Content-Type" header of the request to "application/json".

optional
query: URLSearchParams | any

Argument to URLSearchParams that will be added to the request URL when the request is made.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@kwhinnery/fetchling

Import symbol

import { type FRequestInit } from "@kwhinnery/fetchling";
or

Import directly with a jsr specifier

import { type FRequestInit } from "jsr:@kwhinnery/fetchling";

Add Package

pnpm i jsr:@kwhinnery/fetchling
or (using pnpm 10.8 or older)
pnpm dlx jsr add @kwhinnery/fetchling

Import symbol

import { type FRequestInit } from "@kwhinnery/fetchling";

Add Package

yarn add jsr:@kwhinnery/fetchling
or (using Yarn 4.8 or older)
yarn dlx jsr add @kwhinnery/fetchling

Import symbol

import { type FRequestInit } from "@kwhinnery/fetchling";

Add Package

vlt install jsr:@kwhinnery/fetchling

Import symbol

import { type FRequestInit } from "@kwhinnery/fetchling";

Add Package

npx jsr add @kwhinnery/fetchling

Import symbol

import { type FRequestInit } from "@kwhinnery/fetchling";

Add Package

bunx jsr add @kwhinnery/fetchling

Import symbol

import { type FRequestInit } from "@kwhinnery/fetchling";