{"id":16750114,"url":"https://github.com/alexferl/httplink","last_synced_at":"2025-07-31T08:13:37.419Z","repository":{"id":62856995,"uuid":"563129929","full_name":"alexferl/httplink","owner":"alexferl","description":"HTTP Link header generator","archived":false,"fork":false,"pushed_at":"2022-11-09T03:46:58.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T04:22:42.910Z","etag":null,"topics":["go","golang","header","http-header","http-link","http-link-header","link","link-header"],"latest_commit_sha":null,"homepage":"","language":"Go","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/alexferl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-08T00:56:09.000Z","updated_at":"2022-11-08T06:45:28.000Z","dependencies_parsed_at":"2023-01-21T14:30:43.813Z","dependency_job_id":null,"html_url":"https://github.com/alexferl/httplink","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alexferl/httplink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexferl%2Fhttplink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexferl%2Fhttplink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexferl%2Fhttplink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexferl%2Fhttplink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexferl","download_url":"https://codeload.github.com/alexferl/httplink/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexferl%2Fhttplink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268010119,"owners_count":24180459,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go","golang","header","http-header","http-link","http-link-header","link","link-header"],"created_at":"2024-10-13T02:27:07.006Z","updated_at":"2025-07-31T08:13:37.355Z","avatar_url":"https://github.com/alexferl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httplink [![Go Report Card](https://goreportcard.com/badge/github.com/alexferl/httplink)](https://goreportcard.com/report/github.com/alexferl/httplink) [![codecov](https://codecov.io/gh/alexferl/httplink/branch/master/graph/badge.svg)](https://codecov.io/gh/alexferl/httplink)\n\nA Go module to generate the HTTP [Link](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link) header.\n\n## Installing\n```shell\ngo get github.com/alexferl/httplink\n```\n\n## Using\n### Code example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\n\t\"github.com/alexferl/httplink\"\n)\n\nfunc handler(w http.ResponseWriter, r *http.Request) {\n\thttplink.Append(w.Header(), \"/things/2842\", \"next\")\n}\n\nfunc main() {\n\thttp.HandleFunc(\"/\", handler)\n\thttp.ListenAndServe(\":8080\", nil)\n}\n```\n\nMake a request:\n```shell\ncurl -i http://localhost:8080\nHTTP/1.1 200 OK\nLink: \u003c/things/2842\u003e; rel=next\nDate: Tue, 08 Nov 2022 06:37:22 GMT\nContent-Length: 0\n```\n\n## Credits\nPort of [this](https://github.com/falconry/falcon/blob/3.1.0/falcon/response.py#L779) [Falcon](https://falconframework.org/) method.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexferl%2Fhttplink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexferl%2Fhttplink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexferl%2Fhttplink/lists"}