http-client-restricted

restricting the servers that http-client will use

LTS Haskell 24.45:0.1.0
Stackage Nightly 2026-06-18:0.1.1
Latest on Hackage:0.1.1

See all snapshots http-client-restricted appears in

MIT licensed by Joey Hess
Maintained by Joey Hess
This version can be pinned in stack with:http-client-restricted-0.1.1@sha256:9dcda020c2c9305d7c9c72f499a1e6ee539723d9da46c870f71bd847c2ea09c8,1246

Module documentation for 0.1.1

Addition to the http-client and http-client-tls libraries, that restricts the HTTP servers that can be used.

This is useful when a security policy needs to eg, prevent connections to HTTP servers on localhost or a local network, or only allow connections to a specific HTTP server.

It handles restricting redirects as well as the initial HTTP connection, and it also guards against DNS poisoning attacks.