[{"name":"Http.Retry","comment":" Add retries to a jsonapi http task, based on a list of retry policies, until any one of\nthe policies fail too.\n\n@docs with\n\n\n# Failure conditions\n\n@docs FailureCondition, onStatus, onUnauthenticatedStatus, onUnauthorizedStatus, onNetworkError, onTimeout, onAllFailures\n\n","unions":[{"name":"FailureCondition","comment":" FailureCondition contains a function that filter request errors\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"onAllFailures","comment":" To use with `with` function. Filters errors to be retried by retrying all errors\n","type":"Http.Retry.FailureCondition"},{"name":"onNetworkError","comment":" To use with `with` function. Filters errors to be retried by retrying all network errors\n","type":"Http.Retry.FailureCondition"},{"name":"onStatus","comment":" To use with `with` function. Filters errors to be retried by retrying errors based on the status code\n","type":"Basics.Int -> Http.Retry.FailureCondition"},{"name":"onTimeout","comment":" To use with `with` function. Filters errors to be retried by retrying all timeout errors\n","type":"Http.Retry.FailureCondition"},{"name":"onUnauthenticatedStatus","comment":" To use with `with` function. Filters errors to be retried by retrying errors base on the 401 status code\n","type":"Http.Retry.FailureCondition"},{"name":"onUnauthorizedStatus","comment":" To use with `with` function. Filters errors to be retried by retrying errors base on the 403 status code\n","type":"Http.Retry.FailureCondition"},{"name":"with","comment":" Given a list of error handling `Policy` from [`Retry` package](https://package.elm-lang.org/packages/choonkeat/elm-retry/latest/) we can make our `originalTask`\nretry on failure until any one of the `Policy` fails.\n\n    originalTask\n        |> Http.Retry.with\n            [ Retry.maxDuration 7000\n            , Retry.exponentialBackoff { interval = 500, maxInterval = 3000 }\n            ]\n            [ Http.Retry.onUnauthenticatedStatus ]\n        |> Task.perform DidOriginalTask\n\n","type":"List.List (Retry.Policy Http.Error.RequestError) -> List.List Http.Retry.FailureCondition -> Task.Task Basics.Never (RemoteData.RemoteData Http.Error.RequestError data) -> Task.Task Basics.Never (RemoteData.RemoteData Http.Error.RequestError data)"}],"binops":[]}]