pub fn fetch<T>(
resource: Either<JsString, JsObject>,
options: Option<RequestInit>,
context: &mut Context,
) -> JsPromisewhere
T: Fetcher,Expand description
The fetch function.
ยงErrors
If the fetcher is not registered in the context, an error is returned. This function will also return any error that the fetcher returns, or any conversion to/from JavaScript types.