Adding Timeout and Retry to an HTTP Client in TypeScript

hi, how can i have timeout in this http client

const client = defaultClient.pipe(
      HttpClient.mapRequest(HttpClientRequest.updateUrl(withLeadingSlash)),
      HttpClient.mapRequest(HttpClientRequest.prependUrl(dynoProxyLocation)),
      HttpClient.mapRequest(HttpClientRequest.acceptJson),
      HttpClient.followRedirects(3),
    )

timeout and retry
Was this page helpful?