@ryandur/sand
    Preparing search index...

    Function requesting

    • requesting('/things', {method: 'POST', body: {name: 'sand'}}, () => 'network error')
      .mBind(response => ...); // a body means stringify it and say it's JSON;
      // status policy stays with the caller

      Cancelable end-to-end: bring no signal and requesting wires its own AbortController through onCancel, so the chain's cancel aborts the exchange at the network layer. Bring your own signal and it stays yours — cancel only silences.

      Type Parameters

      • ERROR

      Parameters

      • input: RequestInfo | URL
      • init: RequestingInit
      • onError: (thrown: unknown) => ERROR

      Returns Result.Async<Response, ERROR>