servant-benchmark-0.1.1.1: Generate benchmark files from a Servant API
Safe HaskellNone
LanguageHaskell2010

Servant.Benchmark.HasEndpoint

Synopsis

Documentation

class HasEndpoint (api :: Type) where Source #

HasEndpoint provides type level interpretation of an API Endpoint

Methods

getEndpoint :: Proxy api -> Generator api -> IO Endpoint Source #

weight :: Proxy api -> Generator api -> Word Source #

Instances

Instances details
HasEndpoint Raw Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

HasEndpoint EmptyAPI Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

HasEndpoint api => HasEndpoint (WithNamedContext name sub api) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (WithNamedContext name sub api) -> Generator (WithNamedContext name sub api) -> IO Endpoint Source #

weight :: Proxy (WithNamedContext name sub api) -> Generator (WithNamedContext name sub api) -> Word Source #

HasEndpoint rest => HasEndpoint (HttpVersion :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

(ToJSON a, HasEndpoint rest) => HasEndpoint (ReqBody '[JSON] a :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (ReqBody '[JSON] a :> rest) -> Generator (ReqBody '[JSON] a :> rest) -> IO Endpoint Source #

weight :: Proxy (ReqBody '[JSON] a :> rest) -> Generator (ReqBody '[JSON] a :> rest) -> Word Source #

(ToText a, HasEndpoint rest) => HasEndpoint (ReqBody '[PlainText] a :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

HasEndpoint rest => HasEndpoint (RemoteHost :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

(KnownSymbol params, ToText a, HasEndpoint rest) => HasEndpoint (QueryParams params a :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (QueryParams params a :> rest) -> Generator (QueryParams params a :> rest) -> IO Endpoint Source #

weight :: Proxy (QueryParams params a :> rest) -> Generator (QueryParams params a :> rest) -> Word Source #

(KnownSymbol sym, HasEndpoint rest) => HasEndpoint (QueryFlag sym :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (QueryFlag sym :> rest) -> Generator (QueryFlag sym :> rest) -> IO Endpoint Source #

weight :: Proxy (QueryFlag sym :> rest) -> Generator (QueryFlag sym :> rest) -> Word Source #

(KnownSymbol sym, ToText a, HasEndpoint rest) => HasEndpoint (Header sym a :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (Header sym a :> rest) -> Generator (Header sym a :> rest) -> IO Endpoint Source #

weight :: Proxy (Header sym a :> rest) -> Generator (Header sym a :> rest) -> Word Source #

HasEndpoint rest => HasEndpoint (IsSecure :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

(ToText a, HasEndpoint rest) => HasEndpoint (Fragment a :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (Fragment a :> rest) -> Generator (Fragment a :> rest) -> IO Endpoint Source #

weight :: Proxy (Fragment a :> rest) -> Generator (Fragment a :> rest) -> Word Source #

HasEndpoint rest => HasEndpoint (Summary sym :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (Summary sym :> rest) -> Generator (Summary sym :> rest) -> IO Endpoint Source #

weight :: Proxy (Summary sym :> rest) -> Generator (Summary sym :> rest) -> Word Source #

HasEndpoint rest => HasEndpoint (Description sym :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (Description sym :> rest) -> Generator (Description sym :> rest) -> IO Endpoint Source #

weight :: Proxy (Description sym :> rest) -> Generator (Description sym :> rest) -> Word Source #

(ToText a, HasEndpoint rest) => HasEndpoint (Capture sym a :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (Capture sym a :> rest) -> Generator (Capture sym a :> rest) -> IO Endpoint Source #

weight :: Proxy (Capture sym a :> rest) -> Generator (Capture sym a :> rest) -> Word Source #

(ToText a, HasEndpoint rest) => HasEndpoint (CaptureAll sym a :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (CaptureAll sym a :> rest) -> Generator (CaptureAll sym a :> rest) -> IO Endpoint Source #

weight :: Proxy (CaptureAll sym a :> rest) -> Generator (CaptureAll sym a :> rest) -> Word Source #

HasEndpoint rest => HasEndpoint (BasicAuth realm userData :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (BasicAuth realm userData :> rest) -> Generator (BasicAuth realm userData :> rest) -> IO Endpoint Source #

weight :: Proxy (BasicAuth realm userData :> rest) -> Generator (BasicAuth realm userData :> rest) -> Word Source #

(KnownSymbol sym, HasEndpoint rest) => HasEndpoint (sym :> rest) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (sym :> rest) -> Generator (sym :> rest) -> IO Endpoint Source #

weight :: Proxy (sym :> rest) -> Generator (sym :> rest) -> Word Source #

ReflectMethod method => HasEndpoint (Verb method statusCode contentTypes a) Source # 
Instance details

Defined in Servant.Benchmark.HasEndpoint

Methods

getEndpoint :: Proxy (Verb method statusCode contentTypes a) -> Generator (Verb method statusCode contentTypes a) -> IO Endpoint Source #

weight :: Proxy (Verb method statusCode contentTypes a) -> Generator (Verb method statusCode contentTypes a) -> Word Source #