{"id":38840085,"url":"https://github.com/luopengift/requests","last_synced_at":"2026-01-17T13:59:46.903Z","repository":{"id":57485872,"uuid":"179250277","full_name":"luopengift/requests","owner":"luopengift","description":"Golang HTTP Requests for Humans™ ✨🍰✨","archived":false,"fork":false,"pushed_at":"2019-05-13T02:52:32.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T21:13:38.329Z","etag":null,"topics":["forhumans","golang","golang-requests","http","luopengift","requests"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luopengift.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":"2019-04-03T08:55:08.000Z","updated_at":"2019-05-13T02:50:35.000Z","dependencies_parsed_at":"2022-09-18T18:03:15.730Z","dependency_job_id":null,"html_url":"https://github.com/luopengift/requests","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/luopengift/requests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Frequests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Frequests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Frequests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Frequests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luopengift","download_url":"https://codeload.github.com/luopengift/requests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Frequests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["forhumans","golang","golang-requests","http","luopengift","requests"],"created_at":"2026-01-17T13:59:46.815Z","updated_at":"2026-01-17T13:59:46.889Z","avatar_url":"https://github.com/luopengift.png","language":"Go","readme":"# request\n\n## Golang HTTP Requests for Humans™ ✨🍰✨\n\n### Usage\n\n* 基本用法\n\n```(golang)\n\nrequests.Get(\"https://golang.org)\nrequests.Post(\"https://golang.org, \"application/json\", `{\"a\": \"b\"}`)\n```\n\n* 高级用法\n\n```(golang)\npackage main\n\nimport (\n    \"log\"\n\n    \"github.com/luopengift/requests\"\n)\n\nfunc main() {\n    sess := requests.New()                                           // 创建session\n    sess.SetHeader(\"aaa\", \"bbb\")                                     // 全局配置, 会追加到使用这个sess的所有请求中\n    req, err := requests.NewRequest(\"GET\", \"http://httpbin.org\", nil) // 创建一个GET请求\n    if err != nil {\n        log.Fatal(err)\n        return\n    }\n    req.SetHeader(\"foo\", \"bar\") // req的参数设置会覆盖sess中的参数\n    resp, err := sess.DoRequest(req) //发送创建的请求\n    if err != nil {\n        log.Fatal(err)\n        return\n    }\n    _, err = resp.Text() //解析响应\n    if err != nil {\n        log.Fatal(err)\n        return\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluopengift%2Frequests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluopengift%2Frequests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluopengift%2Frequests/lists"}