airbrake-0.2.0.0: An Airbrake notifier for Haskell

Safe HaskellNone

Airbrake.WebRequest

Description

Class for extracting metadata from HTTP request types that come from different libraries.

Documentation

class WebRequest a whereSource

Methods

url :: a -> URISource

The request URL.

route :: a -> Maybe StringSource

Current route. This is a carryover from Rails-style MVC and is optional.

action :: a -> Maybe StringSource

Controller action being used. This is a carryover from Rails-style MVC and is optional.

otherVars :: a -> [(String, String)]Source

Any other request metadata that you would like to include (server name, user agent, etc.)

Instances

WebRequest Request

wai requests