java.lang.Object
org.htmlunit.javascript.host.fetch.Fetch
The implementation of
fetch().
Supported are the request modes 'cors', 'same-origin' and 'no-cors' (opaque responses), the credentials, redirect and cache modes, the referrer options, subresource integrity and the size limit of keepalive requests.
- Author:
- Ronald Brill
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.htmlunit.corejs.javascript.NativePromisefetch(HtmlUnitScriptable global, Object input, Object init) Starts a fetch.
-
Method Details
-
fetch
public static org.htmlunit.corejs.javascript.NativePromise fetch(HtmlUnitScriptable global, Object input, Object init) Starts a fetch.- Parameters:
global- the window or the worker global scopeinput- the input - a url or aRequestinit- the init dictionary orundefined- Returns:
- the promise for the
Response
-