{"id":30852795,"url":"https://github.com/etaaa/httpez","last_synced_at":"2025-09-07T08:46:27.471Z","repository":{"id":313400578,"uuid":"1051276364","full_name":"etaaa/httpez","owner":"etaaa","description":"A lightweight and modern wrapper around net/http designed for simplicity.","archived":false,"fork":false,"pushed_at":"2025-09-05T18:49:10.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-05T20:45:25.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/etaaa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-05T18:06:24.000Z","updated_at":"2025-09-05T18:48:54.000Z","dependencies_parsed_at":"2025-09-05T20:45:27.574Z","dependency_job_id":"9209f87c-485e-454e-8f7a-7190cb359170","html_url":"https://github.com/etaaa/httpez","commit_stats":null,"previous_names":["etaaa/httpez"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/etaaa/httpez","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fhttpez","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fhttpez/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fhttpez/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fhttpez/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etaaa","download_url":"https://codeload.github.com/etaaa/httpez/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fhttpez/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997155,"owners_count":25204479,"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-09-07T02:00:09.463Z","response_time":67,"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":[],"created_at":"2025-09-07T08:46:25.629Z","updated_at":"2025-09-07T08:46:27.411Z","avatar_url":"https://github.com/etaaa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpez\n\nhttpez is a lightweight, user-friendly wrapper around Go’s standard net/http client. It simplifies HTTP interactions while remaining fully compatible with the standard library.\n\n## Features\n- Drop-in replacement for `http.Client`\n- Global headers applied to all requests.\n- Extensible middleware system for request and response logic.\n- Convenient `*AndReadBody` helpers for quickly fetching response bodies.\n- Fluent API for building clients and requests\n\n## Installation\n\n```bash\ngo get github.com/etaaa/httpez\n```\n\n## Usage\n\nHere is a basic example demonstrating how to create a client and make a simple request with headers.\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/etaaa/httpez\"\n)\n\nfunc main() {\n\t// Create a new client.\n\tclient := httpez.NewClient()\n\n\t// Set custom headers for all requests made with this client.\n\tclient.Headers().\n\t\tSet(\"Accept\", \"application/json\").\n\t\tSet(\"User-Agent\", \"httpez-example\")\n\n\t// Performs a GET request to the specified URL, reads and returns\n\t// the entire response body, and automatically closes the response body.\n\tbody, _, err := client.GetAndReadBody(\"https://httpbin.org/headers\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(string(body))\n}\n```\nFor more detailed examples, including how to use middleware, please see the `examples` folder.\n\n## Contributing\n\nContributions are welcome! Please open issues or submit pull requests for bugs, feature requests, or improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Fhttpez","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetaaa%2Fhttpez","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Fhttpez/lists"}