configuration-tools-0.4.0: Tools for specifying and parsing configurations

Safe HaskellNone
LanguageHaskell2010
Extensions
  • Cpp
  • ScopedTypeVariables
  • OverloadedStrings
  • OverloadedLists
  • DisambiguateRecordFields
  • RecordWildCards
  • TypeSynonymInstances
  • FlexibleContexts
  • FlexibleInstances
  • UnicodeSyntax
  • ExplicitForAll

Configuration.Utils.Http

Contents

Synopsis

HTTP Service TLS Configuration

data HttpServiceTLSConfiguration Source #

In order to make TLS optional this type should be used wrapped into a Maybe.

Instances
Eq HttpServiceTLSConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Ord HttpServiceTLSConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Read HttpServiceTLSConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Show HttpServiceTLSConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

ToJSON HttpServiceTLSConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

FromJSON HttpServiceTLSConfiguration Source #

This is used as default when wrapped into Maybe and

  1. the parsed value is not Null and
  2. the given default is not Nothing.
Instance details

Defined in Configuration.Utils.Http

FromJSON (HttpServiceTLSConfiguration -> HttpServiceTLSConfiguration) Source # 
Instance details

Defined in Configuration.Utils.Http

pHttpServiceTLSConfiguration :: String -> MParser HttpServiceTLSConfiguration Source #

This option parser does not allow to enable or disable usage of TLS. The option will have effect only when TLS usage is configured in the configuration file or the default configuration.

FIXME: print a warning and exit when one of these options is provided even though TLS is turned off.

HTTP Service Configuration

data HttpServiceConfiguration Source #

We restrict services to use either HTTP or HTTPS but not both.

TLS can be turned off explicitely in the configuration file by setting the respective section to null. It can not be turned on or off via command line options. But once it is turned on the values for the certificate and key file can be changed by command line options.

Instances
Eq HttpServiceConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Ord HttpServiceConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Read HttpServiceConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Show HttpServiceConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

ToJSON HttpServiceConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

FromJSON (HttpServiceConfiguration -> HttpServiceConfiguration) Source # 
Instance details

Defined in Configuration.Utils.Http

Http Client Configuration

data HttpClientConfiguration Source #

Instances
Eq HttpClientConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Ord HttpClientConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Read HttpClientConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

Show HttpClientConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

ToJSON HttpClientConfiguration Source # 
Instance details

Defined in Configuration.Utils.Http

FromJSON (HttpClientConfiguration -> HttpClientConfiguration) Source # 
Instance details

Defined in Configuration.Utils.Http