analyze-client-0.1.0.2: Client for analyze service

Safe HaskellNone
LanguageHaskell98

Web.Analyze.Client

Synopsis

Documentation

wrap Source

Arguments

:: Handler b v a

a handler to call in case of error, after it has been reported (presumably to show a 500 page)

-> Manager

a conduit manager, used for http logging requests

-> ByteString

the token for the analyze service

-> Handler b v a

the handler to be wrapped

-> Handler b v a 

wraps a request in code to log the requests and catch and report all errors.

wrap' Source

Arguments

:: Handler b v (Maybe ByteString)

a way to get a user id, if available

-> Handler b v a

a handler to call in case of error, after it has been reported (presumably to show a 500 page)

-> Manager

a conduit manager, used for http logging requests

-> ByteString

the token for the analyze service

-> Handler b v a

the handler to be wrapped

-> Handler b v a 

like wrap, but also takes a handler that produces a user id if available