{"id":38840131,"url":"https://github.com/luopengift/gohttp","last_synced_at":"2026-01-17T13:59:49.440Z","repository":{"id":57485032,"uuid":"86426994","full_name":"luopengift/gohttp","owner":"luopengift","description":"go http framework","archived":false,"fork":false,"pushed_at":"2019-04-18T08:40:13.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T20:41:47.898Z","etag":null,"topics":["gohttp","golang","http","web"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luopengift.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":"2017-03-28T07:11:23.000Z","updated_at":"2019-07-12T02:31:06.000Z","dependencies_parsed_at":"2022-08-26T13:23:44.691Z","dependency_job_id":null,"html_url":"https://github.com/luopengift/gohttp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luopengift/gohttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Fgohttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Fgohttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Fgohttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Fgohttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luopengift","download_url":"https://codeload.github.com/luopengift/gohttp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luopengift%2Fgohttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["gohttp","golang","http","web"],"created_at":"2026-01-17T13:59:48.679Z","updated_at":"2026-01-17T13:59:49.435Z","avatar_url":"https://github.com/luopengift.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gohttp\n\n[![BuildStatus](https://travis-ci.org/luopengift/gohttp.svg?branch=master)](https://travis-ci.org/luopengift/gohttp)\n[![GoDoc](https://godoc.org/github.com/luopengift/gohttp?status.svg)](https://godoc.org/github.com/luopengift/gohttp)\n[![GoWalker](https://gowalker.org/api/v1/badge)](https://gowalker.org/github.com/luopengift/gohttp)\n[![License](https://img.shields.io/badge/LICENSE-Apache2.0-ff69b4.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n---\n\ngohttp is used for RESTful APIs, Web apps, Http services in Golang.\nIt is used similar with [Tornado](http://www.tornadoweb.org).\n\n## GO verion\n\n```{.golang .numberLines startFrom=\"1\"}\nGOVERSION \u003e= 1.9.0\n```\n\n## Getting started\n\n### Sample example\n\n* Simple Server Application: [server](https://github.com/luopengift/gohttp/blob/master/example/server.go)\n* Simple Client Application: [client](https://github.com/luopengift/gohttp/blob/master/example/client.go)\n\n### Complete Example\n\n```{.golang .numberLines startFrom=\"1\"}\npackage main\n\nimport (\n    \"net/http\"\n\n    \"github.com/luopengift/gohttp\"\n)\n\ntype baz struct {\n    gohttp.BaseHTTPHandler\n}\n\nfunc (ctx *baz) GET() {\n    ctx.Output(\"baz ok\")\n}\n\nfunc main() {\n    app := gohttp.Init()\n    // register route \"/foo\"\n    app.RouteFunc(\"/foo\", func(resp http.ResponseWriter, req *http.Request) {\n        resp.Write([]byte(\"foo ok\"))\n    })\n    // register route \"/bar\"\n    app.RouteFunCtx(\"/bar\", func(ctx *gohttp.Context) {\n        ctx.Output(\"bar ok\")\n    })\n    // register route \"/baz\"\n    app.Route(\"/baz\", \u0026baz{})\n    app.Run(\":8888\")\n}\n```\n\n#### Download and Install\n\n``` {.shell .numberLines startFrom=\"1\"}\ngo get github.com/luopengift/gohttp\n```\n\n#### Generate https tls cert/key file\n\n``` {.shell .numberLines startFrom=\"1\"}\ngo run  $GOROOT/src/crypto/tls/generate_cert.go --host localhost\n```\n\n#### Run\n\n``` {.shell .numberLines startFrom=\"1\"}\ngo run  $GOPATH/src/github.com/luopengift/gohttp/sample/server.go\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Added some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create new Pull Request\n\n## Author\n\n[@luopengift](luopengift@foxmail.com)\n\n## License\n\ngohttp source code is licensed under the [Apache Licence 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluopengift%2Fgohttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluopengift%2Fgohttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluopengift%2Fgohttp/lists"}