{"id":20898795,"url":"https://github.com/alyyousuf7/echo-http","last_synced_at":"2026-04-19T21:38:38.423Z","repository":{"id":92278555,"uuid":"372561822","full_name":"alyyousuf7/echo-http","owner":"alyyousuf7","description":"A very minimal HTTP server that returns the requested method and path. That's it.","archived":false,"fork":false,"pushed_at":"2021-05-31T16:17:59.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T12:51:40.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alyyousuf7.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":"2021-05-31T16:03:26.000Z","updated_at":"2021-05-31T16:05:49.000Z","dependencies_parsed_at":"2023-06-08T06:15:29.774Z","dependency_job_id":null,"html_url":"https://github.com/alyyousuf7/echo-http","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Fecho-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Fecho-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Fecho-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alyyousuf7%2Fecho-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alyyousuf7","download_url":"https://codeload.github.com/alyyousuf7/echo-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243285626,"owners_count":20266849,"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":[],"created_at":"2024-11-18T11:12:14.001Z","updated_at":"2025-12-26T21:51:47.633Z","avatar_url":"https://github.com/alyyousuf7.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Echo HTTP\nA very minimal HTTP server that returns the requested method and path. That's it.\n\n## Usage\n```bash\n$ go get github.com/alyyousuf7/echo-http\n$ echo-http -port 8080\n```\n`-port`: listening port (default `80`)\n\nSample response:\n```bash\n$ curl \"http://localhost:8080/hello-world?some-param=some-value\"\nGET /hello-world?some-param=some-value\n```\n\n---\n\nAdding `Requested-Status` header to the request with the expected status code, will make the server to respond with\nthat status code. If not provided, it will always be `200`.\n\n```bash\n$ curl \"http://localhost:8080/hello-world?some-param=some-value\" -H \"Requested-Status: 404\" -v\n*   Trying ::1...\n* TCP_NODELAY set\n* Connected to localhost (::1) port 80 (#0)\n\u003e GET /hello-world?some-param=some-value HTTP/1.1\n\u003e Host: localhost:8080\n\u003e User-Agent: curl/7.64.1\n\u003e Accept: */*\n\u003e Requested-Status: 404\n\u003e\n\u003c HTTP/1.1 404 Not Found\n\u003c Date: Mon, 31 May 2021 15:55:10 GMT\n\u003c Content-Length: 39\n\u003c Content-Type: text/plain; charset=utf-8\n\u003c\nGET /hello-world?some-param=some-value\n* Connection #0 to host localhost left intact\n* Closing connection 0\n```\n\n## Why?\nRecently, I have written some NGINX configurations and it uses lots of `proxy_pass` within the `location` blocks. I\nwanted to test those configurations. Using `http-server` worked well when testing configurations manually, however I\nwanted to write some automated test scripts that could do some sanity checks on basic paths. So this was both.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyyousuf7%2Fecho-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falyyousuf7%2Fecho-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falyyousuf7%2Fecho-http/lists"}