Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juhp/http-directory
http directory listing library
https://github.com/juhp/http-directory
Last synced: 8 days ago
JSON representation
http directory listing library
- Host: GitHub
- URL: https://github.com/juhp/http-directory
- Owner: juhp
- License: mit
- Created: 2019-04-11T02:53:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T12:20:07.000Z (over 2 years ago)
- Last Synced: 2024-04-25T23:02:23.880Z (7 months ago)
- Language: Haskell
- Homepage:
- Size: 78.1 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# http-directory
[![Hackage](https://img.shields.io/hackage/v/http-directory.svg)](https://hackage.haskell.org/package/http-directory)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Stackage LTS](http://stackage.org/package/http-directory/badge/lts)](http://stackage.org/lts/package/http-directory)
[![Stackage Nightly](http://stackage.org/package/http-directory/badge/nightly)](http://stackage.org/nightly/package/http-directory)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
```haskell
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](https://github.com/juhp/http-directory/blob/main/example/) and the [latest haddock documentation](https://hackage.haskell.org/package/http-directory/docs/Network-HTTP-Directory.html) for more details.