sandwich-contexts-0.3.0.0: Contexts for the Sandwich test library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Sandwich.Contexts.HttpWaits

Description

HTTP(S)-specific wait functions, for waiting on servers.

Synopsis

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.

Constructors

YesVerify 
NoVerify 

Instances

Instances details
Eq VerifyCerts Source # 
Instance details

Defined in Test.Sandwich.Contexts.HttpWaits