{"id":19791757,"url":"https://github.com/making/retryable-client-http-request-interceptor","last_synced_at":"2025-10-24T03:36:51.626Z","repository":{"id":157824758,"uuid":"633646578","full_name":"making/retryable-client-http-request-interceptor","owner":"making","description":"RetryableClientHttpRequestInterceptor for RestTemplate and RestClient","archived":false,"fork":false,"pushed_at":"2025-05-23T00:36:29.000Z","size":178,"stargazers_count":16,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-05-30T12:49:09.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/making.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-28T01:11:50.000Z","updated_at":"2025-05-25T19:20:15.000Z","dependencies_parsed_at":"2024-01-04T16:29:25.546Z","dependency_job_id":"94901e32-742d-4b71-a8d9-301016fa0306","html_url":"https://github.com/making/retryable-client-http-request-interceptor","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":"making/java-lib","purl":"pkg:github/making/retryable-client-http-request-interceptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fretryable-client-http-request-interceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fretryable-client-http-request-interceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fretryable-client-http-request-interceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fretryable-client-http-request-interceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/making","download_url":"https://codeload.github.com/making/retryable-client-http-request-interceptor/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fretryable-client-http-request-interceptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280732026,"owners_count":26381577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T07:04:48.304Z","updated_at":"2025-10-24T03:36:51.601Z","avatar_url":"https://github.com/making.png","language":"Java","readme":"# retryable-client-http-request-interceptor\n\nRetryableClientHttpRequestInterceptor for `RestTemplate` and `RestClient`\n\nFor Spring 6+ / Spring Boot 3+\n\n```xml\n\n\u003cdependency\u003e\n\t\u003cgroupId\u003eam.ik.spring\u003c/groupId\u003e\n\t\u003cartifactId\u003eretryable-client-http-request-interceptor\u003c/artifactId\u003e\n\t\u003cversion\u003e0.7.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nFor Spring 5 / Spring Boot 2\n\n```xml\n\n\u003cdependency\u003e\n\t\u003cgroupId\u003eam.ik.spring\u003c/groupId\u003e\n\t\u003cartifactId\u003eretryable-client-http-request-interceptor-spring5\u003c/artifactId\u003e\n\t\u003cversion\u003e0.7.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### How to use\n\n```java\nprivate final RestTemplate restTemplate;\n\npublic MyClient(RestTemplateBuilder builder){\n\tthis.restTemplate = builder\n\t\t.rootUri(\"http://example.com\")\n\t\t.additionalInterceptors(new RetryableClientHttpRequestInterceptor(new FixedBackOff(100, 2)))\n\t\t.build();\n}\n```\n\nor \n\n```java\n// Spring 6.1+ / Spring Boot 3.2+\nprivate final RestClient restClient;\n\npublic MyClient(RestClient.Builder builder){\n\tthis.restClient = builder\n\t\t.baseUrl(\"http://example.com\")\n\t\t.requestInterceptor(new RetryableClientHttpRequestInterceptor(new FixedBackOff(100, 2)))\n\t\t.build();\n}\n```\n* How to use exponential backoff\n    ```java\n    new RetryableClientHttpRequestInterceptor(new ExponentialBackOff(100, 2))\n    ```\n* How to configure `retryableResponseStatuses` (default: 408, 425, 429, 500, 503, 504)\n    ```java\n    new RetryableClientHttpRequestInterceptor(new FixedBackOff(100, 2), Set.of(500, 503))\n    ```\n* How to configure whether to `retryClientTimeout` (default: true)\n    ```java\n    new RetryableClientHttpRequestInterceptor(new FixedBackOff(100, 2),\n\t\toptions -\u003e options.removeRetryableIOException(RetryableIOExceptionPredicate.CLIENT_TIMEOUT))\n    ```\n* How to configure whether to `retryConnectException` (default: true)\n    ```java\n    new RetryableClientHttpRequestInterceptor(new FixedBackOff(100, 2),\n\t\toptions -\u003e options.removeRetryableIOException(RetryableIOExceptionPredicate.CONNECT_TIMEOUT))\n    ```\n* How to configure whether to `retryUnknownHostException` (default: true)\n    ```java\n    new RetryableClientHttpRequestInterceptor(new FixedBackOff(100, 2),\n\t\toptions -\u003e options.removeRetryableIOException(RetryableIOExceptionPredicate.UNKNOWN_HOST))\n    ```\n* How to enable client-side load balancing during retries (Since 0.3.0)\n    ```java\n    LoadBalanceStrategy loadBalanceStrategy = /* Bing your own strategy */;\n    new RetryableClientHttpRequestInterceptor(new FixedBackOff(100, 2),\n\t\t\t\toptions -\u003e options.loadBalanceStrategy(loadBalanceStrategy));\n    ```\n\n### License\n\nLicensed under the Apache License, Version 2.0.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fretryable-client-http-request-interceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaking%2Fretryable-client-http-request-interceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fretryable-client-http-request-interceptor/lists"}