{"id":15957223,"url":"https://github.com/ciricc/httpaddtransport","last_synced_at":"2025-04-04T09:32:27.523Z","repository":{"id":109020468,"uuid":"561949175","full_name":"ciricc/httpaddtransport","owner":"ciricc","description":"Global custom parameters for Go http client requests","archived":false,"fork":false,"pushed_at":"2022-11-04T21:52:24.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T20:16:48.503Z","etag":null,"topics":["go","http","transport"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ciricc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-04T21:46:45.000Z","updated_at":"2022-11-04T21:49:48.000Z","dependencies_parsed_at":"2023-08-25T01:39:49.955Z","dependency_job_id":null,"html_url":"https://github.com/ciricc/httpaddtransport","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/ciricc%2Fhttpaddtransport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciricc%2Fhttpaddtransport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciricc%2Fhttpaddtransport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciricc%2Fhttpaddtransport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ciricc","download_url":"https://codeload.github.com/ciricc/httpaddtransport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247152703,"owners_count":20892542,"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","transport"],"created_at":"2024-10-07T13:40:52.657Z","updated_at":"2025-04-04T09:32:27.496Z","avatar_url":"https://github.com/ciricc.png","language":"Go","readme":"Utilite for logging and add default custom http headers into http client\n\nThis simple example shows how you can add default header for http client and setup log into default logger.\n\n```go\npackage main\n\nimport (\n    \"github.com/ciricc/httpaddtransport\"\n    \"http\"\n)\n\nfunc main() {\n    httpAddTransport, err := httpaddtransport.New(nil, nil)\n\n    if err != nil {\n        panic(err)\n    }\n\n    httpAddTransport.Headers.Set(\"User-Agent\", \"go/1.19\")\n    httpAddTransport.Log = true\n\n    httpClient := http.Client{\n        Transport: httpAddTransport\n    }\n\n    _, err = httpClient.Get(\"https://google.com/\")\n    if err != nil {\n        panic(err)\n    }\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciricc%2Fhttpaddtransport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciricc%2Fhttpaddtransport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciricc%2Fhttpaddtransport/lists"}