Safe Haskell | None |
---|---|
Language | Haskell2010 |
Extensions |
|
- data HttpServiceTLSConfiguration
- hstcCertFile :: Lens' HttpServiceTLSConfiguration FilePath
- hstcKeyFile :: Lens' HttpServiceTLSConfiguration FilePath
- data HttpServiceConfiguration
- hscHost :: Lens' HttpServiceConfiguration ByteString
- hscPort :: Lens' HttpServiceConfiguration Int
- hscUseTLS :: Lens' HttpServiceConfiguration (Maybe HttpServiceTLSConfiguration)
- defaultHttpServiceConfiguration :: HttpServiceConfiguration
- pHttpServiceConfiguration :: String -> MParser HttpServiceConfiguration
- data HttpClientConfiguration
- hccHost :: Lens' HttpClientConfiguration ByteString
- hccPort :: Lens' HttpClientConfiguration Int
- hccUseTLS :: Lens' HttpClientConfiguration Bool
- defaultHttpClientConfiguration :: HttpClientConfiguration
- pHttpClientConfiguration :: String -> MParser 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 | |
Ord HttpServiceTLSConfiguration | |
Read HttpServiceTLSConfiguration | |
Show HttpServiceTLSConfiguration | |
ToJSON HttpServiceTLSConfiguration | |
FromJSON HttpServiceTLSConfiguration | This is used as default when wrapped into Maybe and |
FromJSON (HttpServiceTLSConfiguration -> HttpServiceTLSConfiguration) |
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.