© Ecky Putrady 2018
Ecky PutradyPractical Web Development with Haskellhttps://doi.org/10.1007/978-1-4842-3739-7_9

9. HTTP Client

Ecky Putrady1 
(1)
Singapore, Singapore, Singapore
 

Nowadays, a lot of services expose their functionality over HTTP via RESTful API. Even within the same company, we may use microservices architecture with RESTful API as the primary means of communication. So, it’s inevitable that we would need to talk to other services via HTTP.

Haskell’s ecosystem fortunately has quite good support for executing an HTTP request. Some of the available packages are:
  1. 1.

    http-client1 and http-client-tls2

     
  2. 2.

    wreq 3

     
  3. 3.

    req 4

     
  4. 4.

    http-conduit 5

     

Both wreq and req are more high level compared with http-client. In fact, both depend on http-client ...

Get Practical Web Development with Haskell: Master the Essential Skills to Build Fast and Scalable Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.