The input for the fetch request. This can be a URL string or a RequestInfo object.
Optional
init: FetchInitAn optional object containing custom settings for the fetch request. This can include properties like method
, headers
, body
, etc. It can also include an event
property with a fetch
function for custom fetch implementations (e.g., for testing).
A Request instance. Note: You should not call this function without chaining either the .getJson()
or .getText()
method to retrieve the response data.
Creates a new Request instance for making fetch requests.