{"id":15587729,"url":"https://github.com/codeaprendiz/http_harbour_go","last_synced_at":"2025-03-29T09:17:50.555Z","repository":{"id":219099805,"uuid":"746468892","full_name":"codeaprendiz/http_harbour_go","owner":"codeaprendiz","description":"A tiny go server where no request/response is left unturned.","archived":false,"fork":false,"pushed_at":"2024-01-25T10:34:22.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-03T23:54:26.934Z","etag":null,"topics":["go","http","http-server"],"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/codeaprendiz.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}},"created_at":"2024-01-22T03:54:30.000Z","updated_at":"2024-11-05T05:26:06.000Z","dependencies_parsed_at":"2024-01-25T13:51:54.061Z","dependency_job_id":null,"html_url":"https://github.com/codeaprendiz/http_harbour_go","commit_stats":null,"previous_names":["codeaprendiz/http_harbour_go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeaprendiz%2Fhttp_harbour_go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeaprendiz%2Fhttp_harbour_go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeaprendiz%2Fhttp_harbour_go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeaprendiz%2Fhttp_harbour_go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeaprendiz","download_url":"https://codeload.github.com/codeaprendiz/http_harbour_go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162148,"owners_count":20733357,"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","http-server"],"created_at":"2024-10-02T22:03:03.658Z","updated_at":"2025-03-29T09:17:50.533Z","avatar_url":"https://github.com/codeaprendiz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http_harbour_go\n\n## Local\n\n```bash\n$ go mod init http_harbour_go\ngo: creating new go.mod: module http_harbour_go\ngo: to add module requirements and sums:\n        go mod tidy\n\ngo build\n```\n\n### Run\n\n```bash\n# Terminal 1\n$ ./http_harbour_go -listen=:9090 -text='Hello, World' -status-code=201\n2024/01/21 22:25:01 [INFO] server is listening on :  :9090\n\n# Terminal 2\n$ curl localhost:9090 -v                  \n*   Trying 127.0.0.1:9090...\n* Connected to localhost (127.0.0.1) port 9090 (#0)\n\u003e GET / HTTP/1.1\n\u003e Host: localhost:9090\n\u003e User-Agent: curl/8.1.2\n\u003e Accept: */*\n\u003e \n\u003c HTTP/1.1 201 Created\n\u003c X-App-Name: http_harbour\n\u003c X-App-Version: 0.1.2\n\u003c Date: Sun, 21 Jan 2024 18:25:24 GMT\n\u003c Content-Length: 13\n\u003c Content-Type: text/plain; charset=utf-8\n\u003c \nHello, World\n* Connection #0 to host localhost left intact\n\n# Terminal 1, updated\n$ ./http_harbour_go -listen=:9090 -text='Hello, World' -status-code=201\n2024/01/21 22:25:01 [INFO] server is listening on :  :9090\n\n2024/01/21 22:25:24 [INFO] localhost:9090 127.0.0.1:51519 GET / HTTP/1.1 201 13 curl/8.1.2\n```\n\n## Makefile\n\n```bash\n# For cleanup\nmake clean\n\n# Build locally\nmake build\n\n# Move to $PATH directory, ensure path is added to .zshrc or .bashrc\nmake dev\n\n# Build and push to registy\nmake docker\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeaprendiz%2Fhttp_harbour_go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeaprendiz%2Fhttp_harbour_go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeaprendiz%2Fhttp_harbour_go/lists"}