http-directory

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


Keywords
mit, network, Propose Tags , Skip to Readme, , Index, Quick Jump, Network.HTTP.Directory, http-directory-0.1.10.tar.gz, browse, Package description, package maintainers, edit package information , 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, examples, latest haddock documentation
License
MIT
Install
cabal install http-directory-0.1.10

Documentation

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> :type httpDirectory'
httpDirectory' :: String -> IO [Text]
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.