{"id":37888658,"url":"https://github.com/beono/simproxy","last_synced_at":"2026-01-16T16:54:22.894Z","repository":{"id":78477610,"uuid":"115919758","full_name":"beono/simproxy","owner":"beono","description":"simple proxy – example of an application that uses reverse proxy from the standartd library ","archived":false,"fork":false,"pushed_at":"2018-02-25T21:33:31.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T07:56:08.913Z","etag":null,"topics":["api","example","go","golang","proxy","proxy-server"],"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/beono.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":"2018-01-01T13:06:39.000Z","updated_at":"2018-01-01T14:42:45.000Z","dependencies_parsed_at":"2023-02-27T22:15:52.986Z","dependency_job_id":null,"html_url":"https://github.com/beono/simproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beono/simproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beono%2Fsimproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beono%2Fsimproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beono%2Fsimproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beono%2Fsimproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beono","download_url":"https://codeload.github.com/beono/simproxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beono%2Fsimproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["api","example","go","golang","proxy","proxy-server"],"created_at":"2026-01-16T16:54:22.796Z","updated_at":"2026-01-16T16:54:22.873Z","avatar_url":"https://github.com/beono.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/beono/simproxy.svg?branch=master)](https://travis-ci.org/beono/simproxy)\n[![GoDoc](https://godoc.org/github.com/beono/simproxy?status.svg)](https://godoc.org/github.com/beono/simproxy)\n[![Go Report Card](https://goreportcard.com/badge/github.com/beono/simproxy)](https://goreportcard.com/report/github.com/beono/simproxy)\n\n# About the project\nThe project is an example of an application that uses reverse proxy from the standartd library.\n\n# Why\nLet's assume you want to migrate your api from language X to golang.\nSometimes it's hard to rewrite everything at once and you want to move some handlers to golang, but use old application as a fallback.\nI just want to show you that you don't have to use any 3rd-party proxies (like `nginx`) or write your own proxy logic.\n\n# How to use it\nThe solution is quite simple and straightforward.\nWe use [reverse proxy](https://golang.org/pkg/net/http/httputil/#NewSingleHostReverseProxy) and http server from the standard library.\n* Clone or `go get -u github.com/beono/simproxy` this project.\n* Run `go test \u0026\u0026 go run main.go` to see it in action.\n\nSend a request to http://localhost/hello and you will get a tiny text response.\n\nSend a request to http://localhost:8080/oauth2/v3/certs and you will get a json response.\nThis request was proxied to https://www.googleapis.com/oauth2/v3/certs, because this handler doesn't exist in our new application.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeono%2Fsimproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeono%2Fsimproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeono%2Fsimproxy/lists"}