{"id":13563216,"url":"https://github.com/Escape-Technologies/http-request-catcher","last_synced_at":"2025-04-03T19:32:38.062Z","repository":{"id":47921771,"uuid":"493007045","full_name":"Escape-Technologies/http-request-catcher","owner":"Escape-Technologies","description":"Catch HTTP requests","archived":false,"fork":false,"pushed_at":"2024-08-06T10:35:53.000Z","size":73,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-15T00:09:05.251Z","etag":null,"topics":["catcher","go","golang","http","redis"],"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/Escape-Technologies.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-16T21:37:09.000Z","updated_at":"2025-02-19T20:11:28.000Z","dependencies_parsed_at":"2024-08-06T11:59:43.624Z","dependency_job_id":null,"html_url":"https://github.com/Escape-Technologies/http-request-catcher","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fhttp-request-catcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fhttp-request-catcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fhttp-request-catcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fhttp-request-catcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Escape-Technologies","download_url":"https://codeload.github.com/Escape-Technologies/http-request-catcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247065442,"owners_count":20877779,"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":["catcher","go","golang","http","redis"],"created_at":"2024-08-01T13:01:16.516Z","updated_at":"2025-04-03T19:32:37.824Z","avatar_url":"https://github.com/Escape-Technologies.png","language":"Go","readme":"# http-request-catcher\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/Escape-Technologies/http-request-catcher.svg)](https://pkg.go.dev/github.com/Escape-Technologies/http-request-catcher)\n[![CI](https://github.com/Escape-Technologies/http-request-catcher/actions/workflows/ci.yaml/badge.svg)](https://github.com/Escape-Technologies/http-request-catcher/actions/workflows/ci.yaml)\n[![CD](https://github.com/Escape-Technologies/http-request-catcher/actions/workflows/cd.yaml/badge.svg)](https://github.com/Escape-Technologies/http-request-catcher/actions/workflows/cd.yaml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Escape-Technologies/http-request-catcher)](https://goreportcard.com/report/github.com/Escape-Technologies/http-request-catcher)\n[![codecov](https://codecov.io/gh/Escape-Technologies/http-request-catcher/branch/main/graph/badge.svg)](https://codecov.io/gh/Escape-Technologies/http-request-catcher)\n![Docker Pulls](https://img.shields.io/docker/pulls/escapetech/http-request-catcher)\n![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/escapetech/http-request-catcher)\n\n## Purpose\n\n- Example of caught http request data.\n\n```text\n{\n  \"data\": [\n    {\n      \"id\": \"a\",\n      \"bucket_id\": \"aaa\",\n      \"method\": \"GET\",\n      \"path\": \"/aaa/a\",\n      \"ip\": \"172.20.0.1\",\n      \"time\": \"2022-05-18T08:34:21Z\",\n      \"headers\": {\n        \"Accept\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8\",\n        \"Accept-Encoding\": \"gzip, deflate, br\",\n        \"Accept-Language\": \"en-US,en;q=0.5\",\n        \"Connection\": \"keep-alive\",\n        \"Dnt\": \"1\",\n        \"Sec-Fetch-Dest\": \"document\",\n        \"Sec-Fetch-Mode\": \"navigate\",\n        \"Sec-Fetch-Site\": \"none\",\n        \"Sec-Fetch-User\": \"?1\",\n        \"Upgrade-Insecure-Requests\": \"1\",\n        \"User-Agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0\"\n      },\n      \"data\": \"\"\n    }\n  ],\n  \"message\": \"Ok\"\n}\n```\n\n## API\n\n```text\nGET     /:bucket_id                 - Get all requests for bucket_id\nDELETE  /:bucket_id                 - Delete all requests for bucket_id\nany     /:bucket_id/:request_id     - Catch request into bucket_id\n```\n\n## Options\n\n```bash\nCATCHER_PORT            = 8080\nREDIS_HOST              = \"localhost\"\nREDIS_PORT              = 6379\nREDIS_PASSWORD          = \"\"\nREDIS_DB                = 0\nENTRY_EXPIRATION_TIME   = 120\n```\n\n## Deployement\n\n### Using docker-compose\n\n```bash\nmake compose\n```\n\n## Installation\n\n- Only supports redis for the moment.\n\n```bash\ndocker run --name redis -p 6379:6379 -e ALLOW_EMPTY_PASSWORD=yes bitnami/redis:latest\nmake run\n```\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEscape-Technologies%2Fhttp-request-catcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEscape-Technologies%2Fhttp-request-catcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEscape-Technologies%2Fhttp-request-catcher/lists"}