{"id":34197454,"url":"https://github.com/wnanbei/direwolf","last_synced_at":"2026-03-09T23:36:02.220Z","repository":{"id":57481986,"uuid":"183837465","full_name":"wnanbei/direwolf","owner":"wnanbei","description":"Package direwolf is a convenient and easy to use http client written in Golang. ","archived":false,"fork":false,"pushed_at":"2022-04-10T11:35:15.000Z","size":1697,"stargazers_count":41,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-18T19:29:36.113Z","etag":null,"topics":["convenient","golang","http-client","http-requests"],"latest_commit_sha":null,"homepage":"https://wnanbei.github.io/direwolf/","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/wnanbei.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-28T01:13:50.000Z","updated_at":"2025-02-11T21:34:35.000Z","dependencies_parsed_at":"2022-09-02T04:11:16.678Z","dependency_job_id":null,"html_url":"https://github.com/wnanbei/direwolf","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/wnanbei/direwolf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnanbei%2Fdirewolf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnanbei%2Fdirewolf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnanbei%2Fdirewolf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnanbei%2Fdirewolf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wnanbei","download_url":"https://codeload.github.com/wnanbei/direwolf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnanbei%2Fdirewolf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30316772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["convenient","golang","http-client","http-requests"],"created_at":"2025-12-15T17:39:17.208Z","updated_at":"2026-03-09T23:36:02.212Z","avatar_url":"https://github.com/wnanbei.png","language":"Go","readme":"# Direwolf HTTP Client: Save your time\n\n[![Build Status](https://travis-ci.org/wnanbei/direwolf.svg?branch=master)](https://travis-ci.org/wnanbei/direwolf)\n[![codecov](https://codecov.io/gh/wnanbei/direwolf/branch/dev/graph/badge.svg)](https://codecov.io/gh/wnanbei/direwolf)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/wnanbei/direwolf)\n![language](https://img.shields.io/badge/language-Golang%201.13%2B-blue)\n![GitHub](https://img.shields.io/github/license/wnanbei/direwolf)\n\nPackage direwolf is a convenient and easy to use http client written in Golang.\n\nIf you want find more info, please go here: [Direwolf HTTP Client: Save your time](https://wnanbei.github.io/direwolf/)，内有中文文档。\n\n![direwolf](docs/assets/cover.jpg)\n\n## Feature Support\n\n- Clean and Convenient API\n- Simple to Set Headers, Cookies, Parameters, Post Forms\n- Sessions Control\n- Keep-Alive \u0026 Connection Pooling\n- HTTP(S) Proxy Support\n- Redirect Control\n- Timeout Control\n- Support extract result from response body with css selector, regexp, json\n- Content Decoding\n- More to come...\n\n## Installation\n\n```text\ngo get github.com/wnanbei/direwolf\n```\n\n## Take a glance\n\nYou can easily send a request like this:\n\n```go\nimport (\n    \"fmt\"\n\n    dw \"github.com/wnanbei/direwolf\"\n)\n\nfunc main() {\n    resp, err := dw.Get(\"https://www.google.com\")\n    if err != nil {\n        return\n    }\n    fmt.Println(resp.Text())\n}\n```\n\nBesides, direwolf provide a convenient way to add parameters to request. Such\nas Headers, Cookies, Params, etc.\n\n```go\nimport (\n    \"fmt\"\n\n    dw \"github.com/wnanbei/direwolf\"\n)\n\nfunc main() {\n    headers := dw.NewHeaders(\n        \"User-Agent\", \"direwolf\",\n    )\n    params := dw.NewParams(\n        \"name\", \"wnanbei\",\n        \"age\", \"18\",\n    )\n    cookies := dw.NewCookies(\n        \"sign\", \"kzhxciuvyqwekhiuxcyvnkjdhiue\",\n    )\n    resp, err := dw.Get(\"https://httpbin.org/get\", headers, params, cookies)\n    if err != nil {\n        return\n    }\n    fmt.Println(resp.Text())\n}\n```\n\nOutput:\n\n```json\n{\n    \"args\": {\n        \"age\": \"18\",\n        \"name\": \"wnanbei\"\n    },\n    \"headers\": {\n        \"Accept-Encoding\": \"gzip\",\n        \"Cookie\": \"sign=kzhxciuvyqwekhiuxcyvnkjdhiue\",\n        \"Host\": \"httpbin.org\",\n        \"User-Agent\": \"direwolf\"\n    },\n    \"origin\": \"1.1.1.1, 1.1.1.1\",\n    \"url\": \"https://httpbin.org/get?age=18\u0026name=wnanbei\"\n}\n```\n\n## Contribute\n\nDirewolf is a personal project now, but all contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.\n\nIf you find a bug in direwolf or have some good ideas:\n\n - Go to [GitHub “issues” tab](https://github.com/wnanbei/direwolf/issues) and open a fresh issue to start a discussion around a feature idea or a bug.\n - Send a pull request and bug the maintainer until it gets merged and published.\n - Write a test which shows that the bug was fixed or that the feature works as expected.\n\nIf you need to discuss about direwolf with me, you can send me a e-mail.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwnanbei%2Fdirewolf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwnanbei%2Fdirewolf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwnanbei%2Fdirewolf/lists"}