{"id":20278522,"url":"https://github.com/wmentor/ua","last_synced_at":"2026-05-19T05:41:24.852Z","repository":{"id":144213580,"uuid":"272793351","full_name":"wmentor/ua","owner":"wmentor","description":"http user agent","archived":false,"fork":false,"pushed_at":"2024-01-02T12:37:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T06:54:11.618Z","etag":null,"topics":["golang","golang-library","http","http-client","https","library","user-agent"],"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/wmentor.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":"2020-06-16T19:20:56.000Z","updated_at":"2024-01-02T12:37:25.000Z","dependencies_parsed_at":"2024-01-02T13:53:18.826Z","dependency_job_id":"5adc2564-d668-421b-ad6b-3b5cc4b54b81","html_url":"https://github.com/wmentor/ua","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Fua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Fua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Fua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Fua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wmentor","download_url":"https://codeload.github.com/wmentor/ua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241768283,"owners_count":20017129,"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","golang-library","http","http-client","https","library","user-agent"],"created_at":"2024-11-14T13:23:52.153Z","updated_at":"2025-10-10T23:33:50.164Z","avatar_url":"https://github.com/wmentor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple http client\n\n# Summary\n\n* Use tiny Go\n* Require Go version \u003e= 1.20\n* Minimum external dependencies\n* Simple in usage\n\n# Install\n\n```\ngo get github.com/wmentor/ua\n```\n\n# Usage\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"time\"\n\n  \"github.com/wmentor/ua\"\n)\n\nfunc main() {\n\n  agent := ua.New()\n\n  agent.Timeout = time.Second * 5\n  agent.UserAgent = \"Mozilla\"\n  agent.Decode = true // deconde to utf-8\n\n  headers := map[string]string{\"X-Request-Id\": \"12313\"}\n  data := strings.NewReader(\"content body\")\n\n  resp, err := agent.Request( \"POST\", \"https://someurl.ru\", headers, data)\n\n  if err != nil || resp == nil {\n    panic(\"request failed\")\n  }\n\n  if resp.StatusCode != 200 {\n    panic(\"invalid status code\")\n  }\n\n  fmt.Println(string(resp.Content))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmentor%2Fua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmentor%2Fua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmentor%2Fua/lists"}