{"id":26648965,"url":"https://github.com/vitorsv1/go-proxy","last_synced_at":"2025-03-25T00:47:30.092Z","repository":{"id":283165543,"uuid":"950900984","full_name":"vitorsv1/go-proxy","owner":"vitorsv1","description":"Acts as a middleman between the client and the internet, logging HTTP requests","archived":false,"fork":false,"pushed_at":"2025-03-18T22:05:28.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T22:27:54.105Z","etag":null,"topics":["go","http","proxy","requests"],"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/vitorsv1.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":"2025-03-18T21:20:21.000Z","updated_at":"2025-03-18T22:05:31.000Z","dependencies_parsed_at":"2025-03-18T22:38:11.933Z","dependency_job_id":null,"html_url":"https://github.com/vitorsv1/go-proxy","commit_stats":null,"previous_names":["vitorsv1/go-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitorsv1%2Fgo-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitorsv1%2Fgo-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitorsv1%2Fgo-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitorsv1%2Fgo-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitorsv1","download_url":"https://codeload.github.com/vitorsv1/go-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377955,"owners_count":20605375,"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","proxy","requests"],"created_at":"2025-03-25T00:47:29.642Z","updated_at":"2025-03-25T00:47:30.079Z","avatar_url":"https://github.com/vitorsv1.png","language":"Go","readme":"# HTTP Proxy with Logging\n\n## Overview\nThis is a **basic HTTP proxy server** written in Go that logs all incoming HTTP requests. It captures essential details like the request method, URL, and headers, making it a useful starting point for learning about **networking, proxying, and logging in Go**.\n\n## Features\n- Forwards HTTP requests to their destination.\n- Logs request details (method, URL, headers).\n- Simple and lightweight, perfect for beginners.\n\n## Installation \u0026 Usage\n### Prerequisites\nEnsure you have **Go installed** (version 1.18 or higher recommended). You can download it from [golang.org](https://golang.org/dl/).\n\n### Clone the Repository\n```sh\n git clone https://github.com/vitorsv1/go-proxy.git\n cd go-proxy\n```\n\n### Run the Proxy Server\n```sh\ngo run main.go\n```\nBy default, the proxy listens on **port 8080**.\n\n### Configure Your System to Use the Proxy\n- **Browser:** Set `localhost:8080` as your HTTP proxy.\n- **Curl:** Use the proxy in requests:\n  ```sh\n  curl -x http://localhost:8080 http://example.com\n  ```\n## File Structure\n \n- cmd/  \n  - main.go             \n- internal/  \n  - proxy/                 \n    - proxy.go          \n    - logger.go        \n    - filter.go          \n  - config/           \n    - config.go      \n- logs/                  \n- tests/                \n- go.mod                \n- README.md  \n\n\n## Next Steps\nHere are some enhancements you can add:\n- Support for **HTTPS requests**\n- Implement **domain blocklisting**\n- Save logs to a **file** instead of printing to the console\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitorsv1%2Fgo-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitorsv1%2Fgo-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitorsv1%2Fgo-proxy/lists"}