UNPKG

@gruzf/request

Version:

An easy way to create an http request for NextJS and more

15 lines (12 loc) 737 B
import { NormalizedOptions } from 'ky'; import { I as Instance } from '../RequestClass-11f2242e.js'; import 'http'; import 'next'; import 'next/dist/server/web/spec-extension/adapters/headers'; import 'next/server'; declare const supportsAbortController: boolean; declare function makeSignals(this: Instance, newSignal: AbortSignal, originalSignal: AbortSignal, url: string): AbortSignal; declare function beforeRequestHook(this: Instance, request: Request, options: NormalizedOptions): Request; declare function afterResponse(this: Instance, request: Request): void; declare function pathAndOrigin(url: string, method: string): string; export { afterResponse, beforeRequestHook, makeSignals, pathAndOrigin, supportsAbortController };