MCPcopy Index your code
hub / github.com/aurelia/fetch-client

github.com/aurelia/fetch-client @1.8.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.8.2 ↗ · + Follow
72 symbols 129 edges 15 files 13 documented · 18%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

aurelia-fetch-client

npm Version ZenHub Join the chat at https://gitter.im/aurelia/discuss CircleCI

This library is part of the Aurelia platform and contains a simple client based on the Fetch standard.

To keep up to date on Aurelia, please visit and subscribe to the official blog and our email list. We also invite you to follow us on twitter. If you have questions look around our Discourse forums, chat in our community on Gitter or use stack overflow. Documentation can be found in our developer hub. If you would like to have deeper insight into our development process, please install the ZenHub Chrome or Firefox Extension and visit any of our repository's boards.

Documentation

You can read documentation on the fetch client here. If you would like to help improve this documentation, the source for the above can be found in the doc folder within this repository.

Platform Support

This library can be used in the browser or on the server. A Fetch API polyfill may be needed.

Building The Code

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

shell npm install 3. To build the code, you can now run:

shell npm run build 4. You will find the compiled code in the dist folder, available in module formats: ESM, AMD, CommonJS and UMD.

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:

  1. You can now run the tests with this command:

shell npm run test

Extension points exported contracts — how you extend this code

Interceptor (Interface)
(no doc) [1 implementers]
src/interfaces.ts
Window (Interface)
(no doc) [1 implementers]
doc/whatwg-fetch.d.ts
RequestInit (Interface)
(no doc)
src/interfaces.ts
RequestInit (Interface)
(no doc)
doc/whatwg-fetch.d.ts
RetryConfiguration (Interface)
(no doc)
src/interfaces.ts

Core symbols most depended-on inside this repo

fetch
called by 51
doc/whatwg-fetch.d.ts
configure
called by 25
src/http-client.ts
rejectErrorResponses
called by 18
src/http-client-configuration.ts
get
called by 18
src/http-client.ts
withRetry
called by 16
src/http-client-configuration.ts
callFetch
called by 4
src/http-client.ts
withInterceptor
called by 3
src/http-client-configuration.ts
buildRequest
called by 3
src/http-client.ts

Shape

Function 22
Class 20
Method 20
Enum 5
Interface 5

Languages

TypeScript100%

Modules by API surface

src/http-client.ts23 symbols
doc/whatwg-fetch.d.ts18 symbols
src/http-client-configuration.ts9 symbols
test/http-client.spec.ts7 symbols
src/retry-interceptor.ts7 symbols
src/interfaces.ts3 symbols
doc/url.d.ts2 symbols
doc/dom.d.ts2 symbols
src/util.ts1 symbols

For agents

$ claude mcp add fetch-client \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact