Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Sandwich.Contexts.HttpWaits
Contents
Description
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 :: Type -> Type) = (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 |
type WaitConstraints (m :: Type -> Type) = (HasCallStack, MonadLogger m, MonadUnliftIO m, MonadThrow m) Source #