airship-0.9.1: A Webmachine-inspired HTTP library

Safe HaskellSafe
LanguageHaskell2010

Airship.Config

Synopsis

Documentation

data AirshipConfig Source #

An opaque data type encapsulating all Airship-specific configuration options.

We use lenses to modify AirshipConfig values -- though Airship only depends on the microlens library, its lenses are compatible with Control.Lens.

includeTraceHeader :: Lens' AirshipConfig HeaderInclusion Source #

Determines whether or not the Airship-Trace header, which traces the execution of a given request in the Airship decision tree, is included in every HTTP response. While exposing the decision tree is usually innocuous (and makes for significantly easier debugging), you may want to turn it off in certain circumstances.

Defaults to IncludeHeader (enabled).

includeQuipHeader :: Lens' AirshipConfig HeaderInclusion Source #

Determines whether or not the Airship-Quip header, which includes a pithy quote in your response headers, is included in every HTTP response.

Defaults to IncludeHeader (enabled).

defaultAirshipConfig :: AirshipConfig Source #

The default configuration. Use this, in conjunction with the lenses declared above, to get and modify an AirshipConfig to pass to resourceToWai.