Title: feat(http): simple, dynamic retrying of failed requests · Issue #2810 · angular/angular · GitHub
Open Graph Title: feat(http): simple, dynamic retrying of failed requests · Issue #2810 · angular/angular
X Title: feat(http): simple, dynamic retrying of failed requests · Issue #2810 · angular/angular
Description: In both Dart and JavaScript, there should be a common way to perform simple retries of failed requests, and a way to provide logic to determine whether or not a request should be retried. Functionality should be on top of retry and retry...
Open Graph Description: In both Dart and JavaScript, there should be a common way to perform simple retries of failed requests, and a way to provide logic to determine whether or not a request should be retried. Functiona...
X Description: In both Dart and JavaScript, there should be a common way to perform simple retries of failed requests, and a way to provide logic to determine whether or not a request should be retried. Functiona...
Opengraph URL: https://github.com/angular/angular/issues/2810
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(http): simple, dynamic retrying of failed requests","articleBody":"In both Dart and JavaScript, there should be a common way to perform simple retries of failed requests, and a way to provide logic to determine whether or not a request should be retried. Functionality should be on top of `retry` and `retryWhen` methods of RxJS for the JavaScript side. For Dart, I think a wrapper would have to be created to create new streams when previous streams error.\n\nThe API may look something like this\n\n``` js\nvar req = new Request({url: 'https://foo'});\n//Simple retry\n//Will try request up to three times before giving up and propagating error/completing.\nhttp.try(req, 3).subscribe(res =\u003e this.data = res.json());\n//Dynamic retry. \n//Will try up to 3 times as long as status is 500\nhttp.tryWhen(req, 3, res =\u003e res.status === 500).subscribe(res =\u003e this.data = res.json());\n```\n","author":{"url":"https://github.com/jeffbcross","@type":"Person","name":"jeffbcross"},"datePublished":"2015-07-01T04:08:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2810/angular/issues/2810"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6307a53c-d94b-e7d4-3e06-4fcd000cb2b1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8374:12CFC4:207310:2D1AE2:6A6026CD |
| html-safe-nonce | 1ced24dc8503a51c481dadf896328b06d2a79c1960f1ffcf282cf01a8940b480 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mzc0OjEyQ0ZDNDoyMDczMTA6MkQxQUUyOjZBNjAyNkNEIiwidmlzaXRvcl9pZCI6IjQ3ODA1MjkwODczNTc2NTg4MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 832b8dc7b8c3556b5989f7d6f26efd020b7c32a60496b2aa2c1c48bf5b335d37 |
| hovercard-subject-tag | issue:92263946 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/2810/issue_layout |
| twitter:image | https://opengraph.githubassets.com/003269c8edb5ffaaf595c4b16de4ffea2586ca999319c1cdcbf1a53f6db3a34f/angular/angular/issues/2810 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/003269c8edb5ffaaf595c4b16de4ffea2586ca999319c1cdcbf1a53f6db3a34f/angular/angular/issues/2810 |
| og:image:alt | In both Dart and JavaScript, there should be a common way to perform simple retries of failed requests, and a way to provide logic to determine whether or not a request should be retried. Functiona... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffbcross |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width