http-directory: http directory listing library

[ library, mit, network ] [ Propose Tags ] [ Report a vulnerability ]

Library for listing the files (href's) in an http directory. It can also check the size, existence, modtime of files, and url redirects.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Flags

Automatic Flags
NameDescriptionDefault
executable

build cli tool

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11 (info)
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), bytestring, cryptonite (<0.26), html-conduit, http-client, http-client-tls, http-conduit, http-date (>=0.0.7), http-directory, http-types, network-uri, semigroups, simple-cmd-args, tagstream-conduit (<0.5.6), text, time, xml-conduit [details]
Tested with ghc ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.4 || ==9.10.1
License MIT
Copyright 2019-2022,2024-2025 Jens Petersen
Author Jens Petersen
Maintainer juhpetersen@gmail.com
Category Network
Home page https://github.com/juhp/http-directory
Bug tracker https://github.com/juhp/http-directory/issues
Source repo head: git clone https://github.com/juhp/http-directory.git
Uploaded by JensPetersen at 2025-02-08T09:18:52Z
Distributions Fedora:0.1.10, LTSHaskell:0.1.11, Stackage:0.1.11
Executables http-directory
Downloads 4794 total (48 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-02-08 [all 1 reports]

Readme for http-directory-0.1.11

[back to package description]

http-directory

Hackage MIT license Stackage LTS Stackage Nightly

A simple library for reading http directories.

It uses http-client or http-conduit for http transport, and html-conduit and xml-conduit to parse the html for links.

The library is intended for listing the files in http file directories, but since http directories are just html pages it can also be used to list the links (href's) on any html webpage.

Additionally there are methods for checking the size and modification time, and a few other helper functions.

Usage examples

Network.HTTP.Directory> httpDirectory' "https://hackage.haskell.org/package/base/src/System"
["CPUTime.hsc","Environment.hs","Exit.hs","IO.hs","Info.hs","Mem.hs","Timeout.hs",
"CPUTime","Console","Environment","IO","Mem","Posix"]

See more examples and the latest haddock documentation for more details.