How to use the isomorphic-fetch.Response function in isomorphic-fetch

To help you get started, we’ve selected a few isomorphic-fetch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github r7kamura / stackable-fetcher / src / middlewares / mock.js View on Github external
call(environment) {
    return Promise.resolve(
      new Response(
        this._buildReadableStream(),
        {
          headers: this._getHeaders(),
          size: this.size,
          status: this._getStatus(),
          timeout: this.timeout
        }
      )
    );
  }