A wreq tutorial

wreq tutorial docs examples issues code Learn how to write web clients. We start easy, then ramp up the power. To use the wreq package, simply use cabal , the standard Haskell package management command. cabal update cabal install -j --disable-tests wreq Depending on how many prerequisites you already have installed, and what your Cabal configuration looks like, the build may take a few minutes: a few seconds for wreq , and the rest for its dependencies. We’ll run our examples interactively via the ghci shell. $ ghci To start using wreq , we import the Network.Wreq module. ghci > import Network.Wreq ghci > r <- get "http://httpbin.org/get" ghci > : type r r :: Response ByteString The variable r above is the Response from the server. Complex Haskell libraries and applications have to deal fluently with Haskell’s three main string types: String (“legacy”),...

Linked on 2014-07-02 07:59:49 | Similar Links