A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/node-fetch/node-fetch/commit/7b86e946b02dfdd28f4f8fca3d73a022cbb5ca1e below:

release "Allow URL class object as an argument for fetch()" #169… · node-fetch/node-fetch@7b86e94 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -147,7 +147,7 @@ export type RequestRedirect = 'error' | 'follow' | 'manual';

147 147

export type ReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'same-origin' | 'origin' | 'strict-origin' | 'origin-when-cross-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';

148 148

export type RequestInfo = string | Request;

149 149

export class Request extends BodyMixin {

150 -

constructor(input: RequestInfo | URL, init?: RequestInit);

150 +

constructor(input: URL | RequestInfo, init?: RequestInit);

151 151 152 152

/**

153 153

* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.

@@ -216,4 +216,4 @@ export class AbortError extends Error {

216 216

}

217 217 218 218

export function isRedirect(code: number): boolean;

219 -

export default function fetch(url: RequestInfo | URL, init?: RequestInit): Promise<Response>;

219 +

export default function fetch(url: URL | RequestInfo, init?: RequestInit): Promise<Response>;

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4