Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
HTTP(S)-specific wait functions, for waiting on servers.
Synopsis
- waitUntilStatusCode :: WaitConstraints m => (Int, Int, Int) -> VerifyCerts -> String -> m ()
- waitUntilStatusCodeWithTimeout :: WaitConstraints m => (Int, Int, Int) -> Int -> VerifyCerts -> String -> m ()
- data VerifyCerts
- type WaitConstraints m = (HasCallStack, MonadLogger m, MonadUnliftIO m, MonadThrow m)
HTTP waits
waitUntilStatusCode :: WaitConstraints m => (Int, Int, Int) -> VerifyCerts -> String -> m () Source #
Send HTTP requests to a URL until we get a response with an given code.
waitUntilStatusCodeWithTimeout :: WaitConstraints m => (Int, Int, Int) -> Int -> VerifyCerts -> String -> m () Source #
Same as waitUntilStatusCode
, but with a customizable timeout in microseconds.
Types
data VerifyCerts Source #
Whether to verify certificates or not when connecting to an HTTPS endpoint.
Instances
Eq VerifyCerts Source # | |
Defined in Test.Sandwich.Contexts.HttpWaits (==) :: VerifyCerts -> VerifyCerts -> Bool # (/=) :: VerifyCerts -> VerifyCerts -> Bool # |
type WaitConstraints m = (HasCallStack, MonadLogger m, MonadUnliftIO m, MonadThrow m) Source #