@@ -126,30 +126,26 @@ import qualified Network.Wreq.Lens.TH as TH
126126-- | A lens onto configuration of the connection manager provided by
127127-- the http-client package.
128128--
129- -- In this example, we enable the use of OpenSSL for (hopefully)
129+ -- In this example, we enable the use of TLS for (hopefully)
130130-- secure connections:
131131--
132132-- @
133- -- import "OpenSSL.Session" ('OpenSSL.Session.context')
134- -- import "Network.HTTP.Client.OpenSSL"
133+ -- import "Network.HTTP.Client.TLS"
135134--
136- -- let opts = 'Network.Wreq.defaults' 'Control.Lens.&' 'manager' 'Control.Lens..~' Left ('Network.HTTP.Client.OpenSSL.opensslManagerSettings' 'OpenSSL.Session.context')
137- -- 'Network.HTTP.Client.OpenSSL.withOpenSSL' $
138- -- 'Network.Wreq.getWith' opts \"https:\/\/httpbin.org\/get\"
135+ -- let opts = 'Network.Wreq.defaults' 'Control.Lens.&' 'manager' 'Control.Lens..~' Left 'Network.HTTP.Client.TLS.tlsManagerSettings'
136+ -- 'Network.Wreq.getWith' opts \"https:\/\/httpbin.org\/get\"
139137-- @
140138--
141139-- In this example, we also set the response timeout to 10000 microseconds:
142140--
143141-- @
144- -- import "OpenSSL.Session" ('OpenSSL.Session.context')
145- -- import "Network.HTTP.Client.OpenSSL"
142+ -- import "Network.HTTP.Client.TLS"
146143-- import "Network.HTTP.Client" ('Network.HTTP.Client.defaultManagerSettings', 'Network.HTTP.Client.managerResponseTimeout')
147144--
148- -- let opts = 'Network.Wreq.defaults' 'Control.Lens.&' 'manager' 'Control.Lens..~' Left ( 'Network.HTTP.Client.OpenSSL.opensslManagerSettings' 'OpenSSL.Session.context')
145+ -- let opts = 'Network.Wreq.defaults' 'Control.Lens.&' 'manager' 'Control.Lens..~' Left 'Network.HTTP.Client.TLS.tlsManagerSettings'
149146-- 'Control.Lens.&' 'manager' 'Control.Lens..~' Left ('Network.HTTP.Client.defaultManagerSettings' { 'Network.HTTP.Client.managerResponseTimeout' = responseTimeoutMicro 10000 } )
150147--
151- -- 'Network.HTTP.Client.OpenSSL.withOpenSSL' $
152- -- 'Network.Wreq.getWith' opts \"https:\/\/httpbin.org\/get\"
148+ -- 'Network.Wreq.getWith' opts \"https:\/\/httpbin.org\/get\"
153149-- @
154150manager :: Lens' Options (Either ManagerSettings Manager )
155151manager = TH. manager
0 commit comments