A lightweight Promise-based HTTP client for TypeScript with a filter chain architecture, version 0.10.5. Released infrequently (last update 2020). Differentiates from axios/fetch by offering a middleware-like filter system for request/response transformation, caching, or logging. Ships TypeScript types. Supports typed responses via generics. Not actively maintained; consider alternatives like ky or axios for modern apps.
npm install typescript-http-clientVerified import paths — ran on the pinned version, not inferred.
Creates an HTTP client, builds a GET request, and executes it with typed text response.
Ensure each filter's doFilter method awaits or returns filterChain.doFilter(call).
Use newHttpClient() instead of newClient().
Consider migrating to a maintained alternative like ky or axios.
Explicitly set { responseType: 'text' } for non-JSON responses.Use newHttpClient() to create the client instance.
Add 'const response = await filterChain.doFilter(call); return response;' in each filter.
Ensure generic parameter matches expected response body type.
No dependency data recorded yet.