tessl install tessl/npm-rest@2.0.0RESTful HTTP client library with composable interceptor architecture for Node.js and browsers
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.29x
Baseline
Agent success rate without this tile
59%
Build a custom interceptor that prevents duplicate concurrent requests to the same URL by reusing in-flight requests.
When multiple requests are made to the same URL while a previous request is still pending, the interceptor should:
The solution should:
@generates
/**
* Creates a deduplication interceptor that prevents concurrent duplicate requests
* @returns {Function} An interceptor function
*/
function dedupInterceptor() {
// Implementation here
}
module.exports = dedupInterceptor;Provides the HTTP client library with interceptor support.