{"id":24579928,"url":"https://github.com/parametalol/hop","last_synced_at":"2026-04-12T08:38:43.734Z","repository":{"id":172778598,"uuid":"97308560","full_name":"parametalol/hop","owner":"parametalol","description":"A stupid web service which can do stupid things told by url","archived":false,"fork":false,"pushed_at":"2025-11-27T22:43:17.000Z","size":3344,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T16:43:47.396Z","etag":null,"topics":["http-server","https-server","kubernetes","network-analysis"],"latest_commit_sha":null,"homepage":"","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/parametalol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-07-15T10:24:31.000Z","updated_at":"2025-11-27T22:43:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"93c844cd-ad8c-4b1c-8414-72aaa352ef60","html_url":"https://github.com/parametalol/hop","commit_stats":null,"previous_names":["0x656b694d/hop","parametalol/hop"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/parametalol/hop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parametalol%2Fhop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parametalol%2Fhop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parametalol%2Fhop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parametalol%2Fhop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parametalol","download_url":"https://codeload.github.com/parametalol/hop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parametalol%2Fhop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31709294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["http-server","https-server","kubernetes","network-analysis"],"created_at":"2025-01-24T01:29:46.506Z","updated_at":"2026-04-12T08:38:43.725Z","avatar_url":"https://github.com/parametalol.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hop\n\nA flexible HTTP proxy service that accepts configuration through URL paths. Perfect for testing, development, and debugging distributed systems.\n\n## What is hop?\n\nhop is an HTTP proxy that can be controlled entirely through URLs. Instead of configuration files or command-line flags for each request, you embed options directly in the URL path. This makes it ideal for:\n\n- Testing HTTP clients and network behavior\n- Simulating various server responses and conditions\n- Debugging distributed systems\n- Creating reproducible test scenarios\n- Chain-proxying with different configurations per hop\n\n## Quick Start\n\n### Running the server\n\n```console\n# Using Go\ngo run .\n\n# Or build and run\ngo build -o hop .\n./hop --port-http 8080 --port-https 8443\n```\n\n### Basic usage\n\nThe general URL pattern is:\n\n```text\nhttp://hop-server/[options]/target-url\n```\n\nOptions start with `-` and appear before the target URL. The slashes in the options might need to be URL-escaped as `%2f`.\n\nFor example:\n\n```console\n# Simple proxy request\ncurl http://localhost:8080/https:%2f%2fapi.example.com/users\n\n# Or\n./hop http://localhost:8080/https://api.example.com/users\n\n# With custom method\ncurl http://localhost:8080/-method=POST/https:%2f%2fapi.example.com/users\n\n# Forward headers from incoming request to target\ncurl -H \"Authorization: Bearer token\" \\\n  http://localhost:8080/-forward-headers=Authorization/https:%2f%2fapi.example.com/users\n\n# Multiple options\ncurl http://localhost:8080/-method=POST/-headers=Content-Type:application%2fjson%2fhttps:%2f%2fapi.example.com/users\n```\n\n## Discovering Options\n\nhop supports many options for controlling requests and responses. To see all available options:\n\n1. **Check the source code**: All options are defined in [options/options.go](options/options.go) in the `supportedOptions` map\n2. **Look at the tests**: The [options/options_test.go](options/options_test.go), [parser/parser_test.go](parser/parser_test.go), and [client/client_test.go](client/client_test.go) files contain numerous examples\n3. **Examine the constants**: Client and server options are defined as constants in [options/options.go](options/options.go)\n\nEach option has both a long form (`-option-name`) and a short form (`-X`). For example:\n\n- `-method=POST` or `-X=POST` for HTTP method\n- `-headers=...` or `-H=...` for custom headers\n- `-forward-headers=...` or `-FH=...` for forwarding headers\n- `-insecure` or `-k` for skipping TLS verification\n\n## Option Categories\n\nOptions fall into two main categories:\n\n**Client options**: Control outgoing requests to the target\n\n- HTTP method, headers, body\n- Timeouts and TLS settings\n- Header forwarding\n- Redirect behavior\n\n**Server options**: Control hop's response to the caller\n\n- Response status code and headers\n- Delays and error simulation\n- Process control (panic, exit)\n\n## Build\n\n### Using Go\n\n```console\ngo build -o hop .\n```\n\n### Using Podman/Docker\n\n```console\npodman build -t hop:local .\npodman run --rm -p 8080:8080 hop:local\n```\n\n## Examples\n\n### Forward authentication headers\n\n```console\ncurl -H \"Authorization: Bearer token123\" \\\n  http://localhost:8080/-forward-header=Authorization/https://api.example.com/protected\n```\n\n### POST with custom headers\n\n```console\ncurl http://localhost:8080/-method=POST/-headers=Content-Type:application/json/-body='{\"key\":\"value\"}'/https://api.example.com/data\n```\n\n### Skip TLS verification\n\n```console\ncurl http://localhost:8080/-insecure/https://self-signed.example.com/api\n```\n\n### Custom timeout\n\n```console\ncurl http://localhost:8080/-timeout=5/https://slow-api.example.com/endpoint\n```\n\n### Chain proxying\n\n```console\n# hop1 forwards to hop2, which forwards to the final destination\ncurl http://hop1:8080/-forward-header=X-Request-ID/http://hop2:8080/-method=POST/https://api.example.com/users\n```\n\n## Testing\n\n```console\n# Run all tests\ngo test ./...\n\n# Run specific package tests\ngo test -v ./options\ngo test -v ./parser\ngo test -v ./client\n```\n\n## License\n\nSee LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparametalol%2Fhop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparametalol%2Fhop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparametalol%2Fhop/lists"}