pronk-0.1.2: A library and command line app for HTTP load testing

Safe HaskellNone
LanguageHaskell98

Network.HTTP.LoadTest

Contents

Synopsis

Running a load test

data NetworkError

Exception thrown if issuing a HTTP request fails.

Constructors

NetworkError 

data Config

Instances

Show Config 
ToJSON Config 
FromJSON Config 

newtype Req

Constructors

Req 

Fields

fromReq :: Request
 

Instances

Show Req 
ToJSON Req 
FromJSON Req 

data RequestGenerator where

Constructors

RequestGeneratorConstant :: Req -> RequestGenerator 
RequestGeneratorStateMachine :: Text -> state -> (state -> (Req, Response ByteString -> state)) -> RequestGenerator 

run :: Config -> IO (Either [NetworkError] (Vector Summary))

timed :: Text -> IO a -> IO (a, Double)