Popularity
3.9
Declining
Activity
0.0
Stable
1
4
0

Monthly Downloads: 42
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web     Network     IO-Streams     Io    

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.

Do you think we are missing an alternative of io-streams-http or a related project?

Add another 'io' Package

README

io-streams-http Build Status Hackage

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)