{"id":23900840,"url":"https://github.com/aerogo/http","last_synced_at":"2025-04-10T20:55:20.522Z","repository":{"id":57480408,"uuid":"107775067","full_name":"aerogo/http","owner":"aerogo","description":":balloon: HTTP client with a clean API.","archived":false,"fork":false,"pushed_at":"2021-11-22T09:54:39.000Z","size":72,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T21:05:49.317Z","etag":null,"topics":["go","http","http-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aerogo.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":"2017-10-21T11:37:06.000Z","updated_at":"2023-11-26T08:31:51.000Z","dependencies_parsed_at":"2022-09-18T05:48:52.482Z","dependency_job_id":null,"html_url":"https://github.com/aerogo/http","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerogo%2Fhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aerogo","download_url":"https://codeload.github.com/aerogo/http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261967,"owners_count":21074229,"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":["go","http","http-client"],"created_at":"2025-01-04T20:39:44.232Z","updated_at":"2025-04-10T20:55:20.484Z","avatar_url":"https://github.com/aerogo.png","language":"Go","readme":"# http\n\n[![Godoc][godoc-image]][godoc-url]\n[![Report][report-image]][report-url]\n[![Tests][tests-image]][tests-url]\n[![Coverage][coverage-image]][coverage-url]\n[![Sponsor][sponsor-image]][sponsor-url]\n\nProvides HTTP utilities. Currently it offers a fast and easy-to-use HTTP client.\n\n## Installation\n\n```shell\ngo get github.com/aerogo/http/client\n```\n\n## Request\n\n### Basic GET request\n\n```go\nresponse, err := client.Get(\"https://example.com\").End()\n```\n\n### Other HTTP methods\n\n```go\nclient.Post(\"https://example.com/user/1\").End()\nclient.Put(\"https://example.com/user/1\").End()\nclient.Delete(\"https://example.com/user/1\").End()\n```\n\n### Sending request headers\n\n```go\nresponse, err := client.Get(\"https://example.com\").Header(\"Accept\", \"text/html\").End()\n```\n\n## Response\n\n### Response body as bytes\n\n```go\nresponse.Bytes()\n```\n\n### Response body as a string\n\n```go\nresponse.String()\n```\n\n### Status code\n\n```go\nresponse.StatusCode()\n```\n\n### Deserialize response body into an object (JSON)\n\n```go\nresponse.Unmarshal(\u0026obj)\n```\n\n### Response body as bytes (without unzipping gzip contents)\n\n```go\nresponse.Raw()\n```\n\n### Response body as a string (without unzipping gzip contents)\n\n```go\nresponse.RawString()\n```\n\n### Response length (without unzipping gzip contents)\n\n```go\nresponse.RawLength()\n```\n\n## Style\n\nPlease take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request.\n\n## Sponsors\n\n| [![Cedric Fung](https://avatars3.githubusercontent.com/u/2269238?s=70\u0026v=4)](https://github.com/cedricfung) | [![Scott Rayapoullé](https://avatars3.githubusercontent.com/u/11772084?s=70\u0026v=4)](https://github.com/soulcramer) | [![Eduard Urbach](https://avatars3.githubusercontent.com/u/438936?s=70\u0026v=4)](https://eduardurbach.com) |\n| --- | --- | --- |\n| [Cedric Fung](https://github.com/cedricfung) | [Scott Rayapoullé](https://github.com/soulcramer) | [Eduard Urbach](https://eduardurbach.com) |\n\nWant to see [your own name here?](https://github.com/users/akyoto/sponsorship)\n\n[godoc-image]: https://godoc.org/github.com/aerogo/http?status.svg\n[godoc-url]: https://godoc.org/github.com/aerogo/http\n[report-image]: https://goreportcard.com/badge/github.com/aerogo/http\n[report-url]: https://goreportcard.com/report/github.com/aerogo/http\n[tests-image]: https://cloud.drone.io/api/badges/aerogo/http/status.svg\n[tests-url]: https://cloud.drone.io/aerogo/http\n[coverage-image]: https://codecov.io/gh/aerogo/http/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/aerogo/http\n[sponsor-image]: https://img.shields.io/badge/github-donate-green.svg\n[sponsor-url]: https://github.com/users/akyoto/sponsorship\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerogo%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faerogo%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerogo%2Fhttp/lists"}