{"id":21923490,"url":"https://github.com/vane-tech/http-retry","last_synced_at":"2025-12-12T01:21:32.274Z","repository":{"id":62431322,"uuid":"318244554","full_name":"vane-tech/http-retry","owner":"vane-tech","description":"A small clojure lib to retry on typical http server \u0026 connection errors","archived":false,"fork":false,"pushed_at":"2020-12-03T15:55:41.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-27T10:45:00.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vane-tech.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}},"created_at":"2020-12-03T15:55:00.000Z","updated_at":"2020-12-03T15:55:28.000Z","dependencies_parsed_at":"2022-11-01T21:00:31.833Z","dependency_job_id":null,"html_url":"https://github.com/vane-tech/http-retry","commit_stats":null,"previous_names":["billfront/http-retry"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vane-tech%2Fhttp-retry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vane-tech%2Fhttp-retry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vane-tech%2Fhttp-retry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vane-tech%2Fhttp-retry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vane-tech","download_url":"https://codeload.github.com/vane-tech/http-retry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244945625,"owners_count":20536297,"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","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-28T21:11:51.688Z","updated_at":"2025-12-12T01:21:32.231Z","avatar_url":"https://github.com/vane-tech.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"![http-retry](https://media.giphy.com/media/3o6MbaH9LYlaVpHWBa/giphy.gif)\n\nhttp(s) is great, but a not so well kept secret of it is that requests may fail for different reasons. In many cases they're out of the control of the client and a simple retry can fix it. This is what this library is doing, and nothing else. Written for [clj-http]()\n\n## Usage\n\nGiven this request:\n\n```clojure\n(ns my-app.core\n  (:require [clj-http.client :as client]))\n\n(client/get \"http://example.com\"\n            {:headers {:foo [\"bar\" \"baz\"], :eggplant \"quux\"}})\n```\n\nIf you want to retry it 3 times, change it to this:\n\n```clojure\n(ns my-app.core\n  (:require [clj-http.client :as client]\n            [billfront.http-retry :refer [with-retries]]))\n\n(with-retries 3\n              client/get\n              \"http://example.com\"\n              {:headers {:foo [\"bar\" \"baz\"], :eggplant \"quux\"}})\n```\n\n## Deploy a new version\n\n1. Update the version in the [`pom.xml`](pom.xml)\n2. Commit this change: `git commit -p`\n3. Tag the release and push it and the rest: ``git tag v`grep -oP '(?\u003c=^  \u003cversion\u003e).*?(?=\u003c/version\u003e)' pom.xml` \u0026\u0026 git push --tags \u0026\u0026 git push``\n4. Run `clojure -M:jar`\n5. Run ` CLOJARS_USERNAME=billfront CLOJARS_PASSWORD=\u003cclojars token\u003e clojure -M:deploy`. Get a token from [Clojars dashboard](https://clojars.org/tokens)\n\n## License\n\nCopyright 2020 BillFront GmbH\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvane-tech%2Fhttp-retry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvane-tech%2Fhttp-retry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvane-tech%2Fhttp-retry/lists"}