{"id":26906885,"url":"https://github.com/etaaa/easyclient","last_synced_at":"2025-04-01T11:20:25.871Z","repository":{"id":57697286,"uuid":"494908936","full_name":"etaaa/easyclient","owner":"etaaa","description":"An easy to use Golang wrapper for the net/http package to perform requests","archived":false,"fork":false,"pushed_at":"2024-03-06T11:21:01.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T12:03:56.576Z","etag":null,"topics":["golang","httpclient","requests"],"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/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}},"created_at":"2022-05-21T22:34:55.000Z","updated_at":"2024-02-10T11:58:15.000Z","dependencies_parsed_at":"2024-06-20T11:14:15.812Z","dependency_job_id":"e3c764d4-fa21-450b-86ce-f91ba7c32eaa","html_url":"https://github.com/etaaa/easyclient","commit_stats":null,"previous_names":["etaaa/easy-client"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Feasyclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Feasyclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Feasyclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Feasyclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etaaa","download_url":"https://codeload.github.com/etaaa/easyclient/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628220,"owners_count":20808107,"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":["golang","httpclient","requests"],"created_at":"2025-04-01T11:20:25.271Z","updated_at":"2025-04-01T11:20:25.847Z","avatar_url":"https://github.com/etaaa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easyclient\nAn easy to use wrapper for the net/http package to perform network requests with Golang.\n## Features\n* Automatically response body reading and closing\n* Easily set cookies for a single request or the client session\n* Easily set headers for a single request or the client session\n* Easily set proxy for a single request or the client session\n* ...\n## Usage\nInstallation:\n```bash\ngo get github.com/etaaa/easyclient\n```\nImplementation example:\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"github.com/etaaa/easyclient\"\n)\n\nfunc main() {\n\t// Create a new client.\n\tclient, _ := easyclient.NewClient(easyclient.ClientOptions{\n\t\t// Options specified here will persist for every request made with this client.\n\t\tHeaders: map[string]string{\n\t\t\t\"api-key\": \"123\",\n\t\t},\n\t})\n\t// Execute a request with the created client.\n\tres, body, _ := client.Do(easyclient.RequestOptions{\n\t\t// Options specified here will only be applied for the current request.\n\t\tCookies: map[string]string{\n\t\t\t\"foo\": \"bar\",\n\t\t},\n\t\tHeaders: map[string]string{\n\t\t\t\"user-agent\": \"easyclient\",\n\t\t},\n\t\tMethod:           \"GET\",\n\t\tReadResponseBody: true,\n\t\tURL:              \"https://httpbin.org/headers\",\n\t})\n\tfmt.Print(res.StatusCode, string(body))\n}\n```\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Feasyclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetaaa%2Feasyclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Feasyclient/lists"}