{"id":16956984,"url":"https://github.com/jgraichen/rack-link_headers","last_synced_at":"2025-04-11T21:44:31.109Z","repository":{"id":6433467,"uuid":"7672149","full_name":"jgraichen/rack-link_headers","owner":"jgraichen","description":"Easy Link header management for rack responses.","archived":false,"fork":false,"pushed_at":"2025-02-17T08:17:09.000Z","size":55,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T17:49:23.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgraichen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-01-17T18:54:56.000Z","updated_at":"2025-02-17T08:16:27.000Z","dependencies_parsed_at":"2025-01-13T05:24:24.504Z","dependency_job_id":"9aa560c5-9cc7-4e49-a0f1-82bb25627516","html_url":"https://github.com/jgraichen/rack-link_headers","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-link_headers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-link_headers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-link_headers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Frack-link_headers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgraichen","download_url":"https://codeload.github.com/jgraichen/rack-link_headers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487510,"owners_count":21112187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T22:16:33.839Z","updated_at":"2025-04-11T21:44:31.087Z","avatar_url":"https://github.com/jgraichen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rack::LinkHeaders\n\n[![Gem Version](https://img.shields.io/gem/v/rack-link_headers?logo=ruby)](https://rubygems.org/gems/rack-link_headers)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/jgraichen/rack-link_headers/test.yml?logo=github)](https://github.com/jgraichen/rack-link_headers/actions/workflows/test.yml)\n\nEasy Link header management for rack responses.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rack-link_headers', '~\u003e 2.4'\n```\n\nAnd then execute:\n\n```console\nbundle\n```\n\nOr install it yourself as:\n\n```console\ngem install rack-link_headers\n```\n\n## Usage\n\n```ruby\nresponse.link \"http://abc.de/\", rel: :search\nresponse.link \"http://test.host/feed.xml\", rel: :rss, type: \"application/rss+xml\"\n```\n\n```ruby\nresponse.headers[\"Link\"]\n# =\u003e \u003chttp://abc.de/\u003e; rel=\"rel\", \u003chttp://test.host/feed.xml\u003e; rel=\"rss\"; type=\"application/rss+xml\"\n```\n\nManual set Link header will be overridden. All links can be\naccessed via `links`:\n\n```ruby\nresponse.link \"http://abc.de/\", rel: :search\nresponse.link \"http://test.host/feed.xml\", rel: :rss, type: \"application/rss+xml\"\n\nresponse.links\n# =\u003e [\n#  {:url=\u003e\"http://abc.de/\",\n#   :params=\u003e{:ref=\u003e:search}},\n#  {:url=\u003e\"http://test.host/feed.xml\",\n#   :params=\u003e{:rel=\u003e:rss, :type=\u003e\"application/rss+xml\"}}\n# ]\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Add tests for your features.\n4. Add your features.\n5. Commit your changes (`git commit -am 'Add some feature'`)\n6. Push to the branch (`git push origin my-new-feature`)\n7. Create new Pull Request\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n\nCopyright © 2023, Jan Graichen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgraichen%2Frack-link_headers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgraichen%2Frack-link_headers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgraichen%2Frack-link_headers/lists"}