talira

HTTP (Haskell)

Client-side HTTP library for Haskell, written in Haskell on the network package

open sourceHTTP BSD 3-clause licencefree

HTTP is a client-side HTTP library for Haskell. It sets up connections, sends requests and processes the responses, with the implementation written in Haskell on top of the network package. Besides single requests (simpleHTTP), its BrowserAction monad handles sessions: persistent connections, proxies, cookies and authentication credentials for multi-step interactions. Requests and responses can be represented as String or ByteString through a type class. It's a different library from the Rust http crate.

Problems it solves

  • make an HTTP GET request from a Haskell program
  • keep cookies and a persistent connection across several HTTP requests in Haskell
  • fetch a web page in Haskell without a C library dependency

Features

  • simple single requests with simpleHTTP
  • BrowserAction sessions with persistent connections, proxies, cookies and authentication
  • String and ByteString request and response types through a type class
  • pure Haskell on top of the network package

Alternatives

The same job

These do what HTTP (Haskell) does.

  1. http-client HTTP client engine and higher-level HTTP APIs for Haskell
  2. http-types Generic HTTP types for Haskell, for client and server code

Compare HTTP (Haskell) with the top 3