Popularity
3.6
Declining
Activity
0.0
Stable
1
5
0
Monthly Downloads: 13
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
io-streams-http alternatives and similar packages
Based on the "io" category.
Alternatively, view io-streams-http alternatives based on common mentions on social networks and blogs.
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
Promo
www.influxdata.com
Do you think we are missing an alternative of io-streams-http or a related project?
README
io-streams-http
http-client-tls meets io-streams
http-client usage
module Main where
import System.IO.Streams (InputStream, OutputStream)
import qualified System.IO.Streams as Streams
import System.IO.Streams.HTTP
import Network.HTTP.Client
main :: IO ()
main = do
req <- parseUrl "http://google.com"
withManager defaultManagerSettings $ \m ->
withHTTP req m $ \resp -> do
Streams.supplyTo Streams.stdout (responseBody resp)
http-client-tls usage
module Main where
import System.IO.Streams ( InputStream, OutputStream )
import qualified System.IO.Streams as Streams
import System.IO.Streams.HTTP ( withHTTP, parseUrl, withManager )
import Network.HTTP.Client.TLS ( tlsManagerSettings )
import Network.HTTP.Client ( responseBody )
main :: IO ()
main = do
req <- parseUrl "http://google.com"
withManager tlsManagerSettings $ \m ->
withHTTP req m $ \resp -> do
Streams.supplyTo Streams.stdout (responseBody resp)