link-header
Version, currently 1.0.13 versions
- 1.0.2latestMar 22, 2021
- 1.0.1not indexedMay 26, 2021
- 1.0.0not indexedMay 26, 2021
github.com/spider-gazelle/link-header
Crystal Lang HTTP Link Header Parser
Nothing has been indexed for 1.0.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
link-header:
github: spider-gazelle/link-header
version: ~> 1.0.1Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Crystal Lang HTTP Link Header Parser
Parses link headers
Installation
-
Add the dependency to your
shard.yml:dependencies: link-header: github: spider-gazelle/link-header -
Run
shards install
Usage
require "http/client"
require "link-header"
# Parse the links out of the response
response = HTTP::Client.get "http://www.example.com"
links = LinkHeader.new(response)
# equivalent to the above
links = LinkHeader.new(response.headers)
# Get the first link matching a `rel`
links["next"] # => "https://next.link/" or raise KeyError
links["next"]? # => "https://next.link/" or nil
# Get all the links matching a `rel`
links.get("preconnect") # => ["https://link.1/", "https://link.2/"]
links.get("missing") # => []
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.1- Tagged
- May 26, 2021
- Commit
1ecc56fb69e5- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/spider-gazelle/link-header
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 3