http-directory: http directory listing library

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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


[Skip to Readme]

Properties

Versions 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.8, 0.1.9, 0.1.10
Change log CHANGELOG.md
Dependencies base (<5), bytestring, cryptonite (<0.26), html-conduit, http-client, http-client-tls, http-date (>=0.0.7), http-types, network-uri, semigroups, text, time, xml-conduit [details]
License MIT
Copyright 2019-2020 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 2020-03-12T09:33:06Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for http-directory-0.1.8

[back to package description]

http-directory

Hackage MIT license Stackage Lts Stackage Nightly Build status

A simple library for reading http directories.

It uses http-client 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.

Usage Example

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 usage details.