| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Fri, 16 Jan 2026 23:47:44 GMT
X-Served-By: cache-dfw-kdal2120065-DFW, cache-bom-vanm7210044-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768607264.841866,VS0,VE376
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
http-link-header: HTTP Link header parser/writer
http-link-header: HTTP Link header parser/writer
Modules
[Index] [Quick Jump]
Downloads
- http-link-header-1.2.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0, 0.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.3.1, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3 |
|---|---|
| Dependencies | attoparsec, base (>=4.3 && <5), bytestring, errors, http-api-data, network-uri, text [details] |
| License | LicenseRef-PublicDomain |
| Copyright | 2014-2025 Val Packett <val@packett.cool> |
| Author | Val Packett |
| Maintainer | val@packett.cool |
| Uploaded | by valpackett at 2025-04-15T08:13:08Z |
| Category | Web |
| Home page | https://codeberg.org/valpackett/http-link-header |
| Bug tracker | https://codeberg.org/valpackett/http-link-header/issues |
| Source repo | head: git clone https://codeberg.org/valpackett/http-link-header.git |
| Distributions | Debian:1.0.3.1, LTSHaskell:1.2.3, NixOS:1.2.3, Stackage:1.2.3 |
| Reverse Dependencies | 8 direct, 12 indirect [details] |
| Downloads | 10308 total (55 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-04-15 [all 1 reports] |
Readme for http-link-header-1.2.3
[back to package description]http-link-header
A Haskell library than implements a parser and a writer for the HTTP Link header as specified in RFC 5988 "Web Linking".
Usage
import Network.HTTP.Link
import Network.URI
import Data.Maybe
----- Writing
writeLinkHeader [ Link (fromJust $ parseURI "https://example.com/hello%20world") [(Rel, "next"), (Title, "hello world")]
, Link (fromJust $ parseURI "https://yolo.tld") [(Rel, "license")] ]
-- "<https://example.com/hello%20world>; rel=\"next\"; title=\"hello world\", <https://yolo.tld>; rel=\"license\""
----- Parsing
parseLinkHeader "<https://example.com/2>; rel=\"next\", <https://example.com/0>; rel=prev"
-- Just [ Link https://example.com/2 [(Rel, "next")]
-- , Link https://example.com/0 [(Rel, "prev")] ]
Development
Use stack to build.
Use ghci to run tests quickly with :test (see the .ghci file).
$ stack build
$ stack test && rm tests.tix
$ stack bench
$ stack ghci --ghc-options="-fno-hpc"
License
This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or unlicense.org.