Safe Haskell | None |
---|---|
Language | Haskell2010 |
Extensions |
|
- data HttpServiceTLSConfiguration
- hstcCertFile :: Lens' HttpServiceTLSConfiguration FilePath
- hstcKeyFile :: Lens' HttpServiceTLSConfiguration FilePath
- defaultHttpServiceTLSConfiguration :: HttpServiceTLSConfiguration
- pHttpServiceTLSConfiguration :: String -> MParser HttpServiceTLSConfiguration
- validateHttpServiceTLSConfiguration :: ConfigValidation HttpServiceTLSConfiguration λ
- data HttpServiceConfiguration
- hscHost :: Lens' HttpServiceConfiguration ByteString
- hscPort :: Lens' HttpServiceConfiguration Int
- hscUseTLS :: Lens' HttpServiceConfiguration (Maybe HttpServiceTLSConfiguration)
- defaultHttpServiceConfiguration :: HttpServiceConfiguration
- pHttpServiceConfiguration :: String -> MParser HttpServiceConfiguration
- validateHttpServiceConfiguration :: ConfigValidation HttpServiceConfiguration DList
- data HttpClientConfiguration
- hccHost :: Lens' HttpClientConfiguration ByteString
- hccPort :: Lens' HttpClientConfiguration Int
- hccUseTLS :: Lens' HttpClientConfiguration Bool
- defaultHttpClientConfiguration :: HttpClientConfiguration
- pHttpClientConfiguration :: String -> MParser HttpClientConfiguration
- validateHttpClientConfiguration :: ConfigValidation HttpClientConfiguration λ
- httpService2clientConfiguration :: HttpServiceConfiguration -> HttpClientConfiguration
HTTP Service TLS Configuration
data HttpServiceTLSConfiguration Source #
In order to make TLS optional this type should be used wrapped into a Maybe.
Eq HttpServiceTLSConfiguration Source # | |
Ord HttpServiceTLSConfiguration Source # | |
Read HttpServiceTLSConfiguration Source # | |
Show HttpServiceTLSConfiguration Source # | |
FromJSON HttpServiceTLSConfiguration Source # | This is used as default when wrapped into Maybe and |
ToJSON HttpServiceTLSConfiguration Source # | |
FromJSON (HttpServiceTLSConfiguration -> HttpServiceTLSConfiguration) Source # | |
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.