happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
24 lines (22 loc) • 820 B
text/typescript
import type AbortSignal from '../AbortSignal.js';
import type URL from '../../url/URL.js';
import type { TRequestBody } from './TRequestBody.js';
import type { THeadersInit } from './THeadersInit.js';
import type { TRequestMode } from './TRequestMode.js';
import type { TRequestCredentials } from './TRequestCredentials.js';
import type { TRequestReferrerPolicy } from './TRequestReferrerPolicy.js';
import type { TRequestRedirect } from './TRequestRedirect.js';
/**
* Fetch request init.
*/
export default interface IRequestInit {
body?: TRequestBody;
headers?: THeadersInit;
method?: string;
mode?: TRequestMode;
redirect?: TRequestRedirect;
signal?: AbortSignal | null;
referrer?: '' | 'no-referrer' | 'client' | string | URL;
credentials?: TRequestCredentials;
referrerPolicy?: TRequestReferrerPolicy;
}