{"id":43808110,"url":"https://github.com/mt-inside/http-log","last_synced_at":"2026-02-05T23:04:39.639Z","repository":{"id":41424129,"uuid":"329151439","full_name":"mt-inside/http-log","owner":"mt-inside","description":"Dumps http requests that come its way","archived":false,"fork":false,"pushed_at":"2025-04-15T14:00:51.000Z","size":468,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T01:37:42.710Z","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/mt-inside.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,"zenodo":null}},"created_at":"2021-01-13T00:42:28.000Z","updated_at":"2025-08-09T08:24:59.000Z","dependencies_parsed_at":"2024-01-24T13:43:41.715Z","dependency_job_id":"7e163870-dfc2-4046-8b49-0aa3261ae814","html_url":"https://github.com/mt-inside/http-log","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/mt-inside/http-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-inside%2Fhttp-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-inside%2Fhttp-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-inside%2Fhttp-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-inside%2Fhttp-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mt-inside","download_url":"https://codeload.github.com/mt-inside/http-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-inside%2Fhttp-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29137754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:02:30.544Z","status":"ssl_error","status_checked_at":"2026-02-05T23:02:24.945Z","response_time":65,"last_error":"SSL_read: 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":[],"created_at":"2026-02-05T23:04:39.587Z","updated_at":"2026-02-05T23:04:39.633Z","avatar_url":"https://github.com/mt-inside.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-log\n\n[![build](https://github.com/mt-inside/http-log/actions/workflows/test.yaml/badge.svg)](https://github.com/mt-inside/http-log/actions/workflows/test.yaml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/mt-inside/http-log.svg)](https://pkg.go.dev/github.com/mt-inside/http-log)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mt-inside/http-log)](https://goreportcard.com/report/github.com/mt-inside/http-log)\n\nTODO Asciinema etc\n\n## Stand-alone Daemon\n\nThese args will listen on `https://0.0.0.0:8080` with a self-signed cert, log requests, and respond with a json object. See `http-log -h`.\n\nRun from container image:\n```bash\ndocker run -t --rm -p8080:8080 ghcr.io/mt-inside/http-log:v0.7.15\n```\n\nDownload single, statically-linked binary\n```bash\nwget -O http-log https://github.com/mt-inside/http-log/releases/download/v0.7.15/http-log-$(uname -s)-$(uname -m)\nchmod u+x http-log\n./http-log\n```\n\nInstall from source\n```bash\ngo install github.com/mt-inside/http-log/cmd/http-log@latest\n${GOPATH}/bin/http-log\n```\n\n## AWS Lambda\n\n`docker build ./cmd/lambda`\n\nPackaging and publishing is left as an exercise for the reader (I forgot how I did it)\n\n# Usage\n\n## HTTP Versions\n\nNote: h2c - h2 cleartext - is the name for h2/plaintext. The \"correct\" way to initiate such a connection is to send an http/1.1 request with an `Upgrade: h2c` field. Of course a client (like an Envoy proxy) can be configured with a-priori knowledge that the server accepts h2c, and just send h2 right away.\n\n* With TLS (a `-K` option other than `off`, or `-k/-c`)\n  * Default: TLS's ALPN field allows client and server to negotiate HTTP version. http-log supports h2, and any modern client will do as well. The default with TLS enabled is \"let it negotiate\", which makes h2 effectively the default.\n  * With `--http-11`: we force http/1.1. This is done by returning _no_ protocols in the ALPN field, which means negotiation can't happen, and the default is used, which is http/1.1.\n* Without TLS (`-K=off`, or no `-K` and no `-k/-c`) http/1.1 is the \"standard\" version. It's usually quite hard to force clients (and server libraries) to do h2 over plaintext.\n  * Default: because of some magic in the Go libraries, it's able to accept either http/1.1 or h2 simultaneously. h2 connections can either be h2 on the first request, or can upgrade with an HTTP/1.1 call with header `Upgrade: h2c`.\n  * With `--http-11`: we disable the h2 handling. http/1.1 will work fine.\n    * If you send an h2c upgrade request you'll see it printed, but the h2 upgrade and \"main\" request won't happen.\n    * If you send an immediate h2 request, you'll see a log of a PRI method, with no other data (as that very first part of the h2 request is h1 compatible)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-inside%2Fhttp-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmt-inside%2Fhttp-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-inside%2Fhttp-log/lists"}