{"id":15871050,"url":"https://github.com/sgreben/http-echo","last_synced_at":"2025-04-01T22:25:33.371Z","repository":{"id":80988928,"uuid":"157446827","full_name":"sgreben/http-echo","owner":"sgreben","description":"tiny HTTP server that echoes the requests it receives. single binary, no dependencies. linux, osx, windows.","archived":false,"fork":false,"pushed_at":"2020-05-04T22:59:03.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T14:40:17.646Z","etag":null,"topics":["debug","echo","golang","http","http-server","tiny"],"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/sgreben.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":"2018-11-13T21:06:38.000Z","updated_at":"2023-11-30T16:40:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"e23113c2-8c89-4008-a480-ae7a0fb79d30","html_url":"https://github.com/sgreben/http-echo","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"0b72342d0a3e6a29c01df10f93f933fe6d11f441"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Fhttp-echo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Fhttp-echo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Fhttp-echo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Fhttp-echo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgreben","download_url":"https://codeload.github.com/sgreben/http-echo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246719665,"owners_count":20822787,"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":["debug","echo","golang","http","http-server","tiny"],"created_at":"2024-10-06T00:41:34.104Z","updated_at":"2025-04-01T22:25:33.344Z","avatar_url":"https://github.com/sgreben.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-echo\n\n`http-echo` is a dependency-free HTTP server that always responds with the request it receives.\n\n## Contents\n\n\u003c!-- TOC --\u003e\n\n- [Contents](#contents)\n- [Examples](#examples)\n- [Get it](#get-it)\n    - [Using `go get`](#using-go-get)\n    - [Pre-built binary](#pre-built-binary)\n- [Use it](#use-it)\n\n\u003c!-- /TOC --\u003e\n\n\n## Examples\n\n```sh\n$ http-echo\n2018/11/13 20:58:13.542893  http-echo listening on \":8080\", responding with HTTP 200 (OK)\n```\n\n```sh\n$ http-echo -p 1234\n2018/11/13 20:57:45.561703 http-echo listening on \":1234\", responding with HTTP 200 (OK)\n```\n\n```sh\n$ export PORT=9999\n$ http-echo\n2018/11/13 21:00:45.927216 http-echo listening on \":9999\", responding with HTTP 200 (OK)\n```\n\n## Get it\n\n### Using `go get`\n\n```sh\ngo get -u github.com/sgreben/http-echo\n```\n\n### Pre-built binary\n\nOr [download a binary](https://github.com/sgreben/http-echo/releases/latest) from the releases page, or from the shell:\n\n```sh\n# Linux\ncurl -L https://github.com/sgreben/http-echo/releases/download/1.0.1/http-echo_1.0.1_linux_x86_64.tar.gz | tar xz\n\n# OS X\ncurl -L https://github.com/sgreben/http-echo/releases/download/1.0.1/http-echo_1.0.1_osx_x86_64.tar.gz | tar xz\n\n# Windows\ncurl -LO https://github.com/sgreben/http-echo/releases/download/1.0.1/http-echo_1.0.1_windows_x86_64.zip\nunzip versions_1.0.1_windows_x86_64.zip\n```\n\n## Use it\n\n```text\nUsage of http-echo:\n  -a string\n    \t(alias for -addr) (default \":8080\")\n  -addr string\n    \taddress to listen on (environment variable \"ADDR\") (default \":8080\")\n  -http-status int\n    \tuse this HTTP status for responses (environment variable \"HTTP_STATUS\") (default 200)\n  -p int\n    \t(alias for -port)\n  -port int\n    \tport to listen on (overrides -addr port) (environment variable \"PORT\")\n  -q\t(alias for -quiet)\n  -quiet\n    \tdisable all log output (environment variable \"QUIET\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgreben%2Fhttp-echo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgreben%2Fhttp-echo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgreben%2Fhttp-echo/lists"}