Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- retry :: (MonadIO m, MonadCatch m) => RetrySettings -> (RetryStatus -> m a) -> m a
- handler :: MonadIO m => SomeException -> m RetryAction
Documentation
retry :: (MonadIO m, MonadCatch m) => RetrySettings -> (RetryStatus -> m a) -> m a Source #
Retry handler for HTTP requests.
Retries a subset of HTTP exceptions and overrides the delay with the Retry-After header if present.
handler :: MonadIO m => SomeException -> m RetryAction Source #