Skip to content

Documentation / @warp-drive/core / Fetch

Variable: Fetch

ts
const Fetch: object;

Defined in: warp-drive-packages/core/src/request/-private/fetch.ts:109

ts
import { Fetch } from '@warp-drive/core';

A basic Fetch Handler which converts a request into a fetch call presuming the response to be json.

ts
import { RequestManager, Fetch } from '@warp-drive/core';

const manager = new RequestManager()
  .use([Fetch]);

Type declaration

request()

ts
request<T>(context): Promise<T>;

Type Parameters

T

T

Parameters

context

Context

Returns

Promise<T>

Released under the MIT License.