About

Metadata

  • Last updated , by JensPetersen
  • License MIT
  • Categories Network Development
  • Maintained by: juhpetersen@gmail.com

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.10.1
  2. 9.8.4
  3. 9.6.6
  4. 9.4.8
  5. 9.2.8
  6. 9.0.2
  7. 8.10.7
  8. 8.8.4
  9. 8.6.5
  10. 8.4.4
  11. 8.2.2
  12. 8.0.2

Package Flags

Use the -f option with cabal commands to enable flags

    executable (off by default)

    build cli tool

Readme

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/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.