{"id":25452959,"url":"https://github.com/dbackowski/http_debug_output-parser","last_synced_at":"2026-02-14T22:30:50.680Z","repository":{"id":277735929,"uuid":"933306079","full_name":"dbackowski/http_debug_output-parser","owner":"dbackowski","description":"Ruby's Net::HTTP debug output parser","archived":false,"fork":false,"pushed_at":"2025-02-23T17:22:29.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T20:56:14.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/dbackowski.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}},"created_at":"2025-02-15T16:38:52.000Z","updated_at":"2025-02-23T17:22:33.000Z","dependencies_parsed_at":"2025-02-15T19:23:36.124Z","dependency_job_id":"fd406c3f-306f-49e7-b1ac-fd6f13ebb1f4","html_url":"https://github.com/dbackowski/http_debug_output-parser","commit_stats":null,"previous_names":["dbackowski/http_debug_output-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dbackowski/http_debug_output-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackowski%2Fhttp_debug_output-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackowski%2Fhttp_debug_output-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackowski%2Fhttp_debug_output-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackowski%2Fhttp_debug_output-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbackowski","download_url":"https://codeload.github.com/dbackowski/http_debug_output-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackowski%2Fhttp_debug_output-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29458550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T21:29:27.764Z","status":"ssl_error","status_checked_at":"2026-02-14T21:28:11.111Z","response_time":53,"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":[],"created_at":"2025-02-17T23:41:59.933Z","updated_at":"2026-02-14T22:30:50.649Z","avatar_url":"https://github.com/dbackowski.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HttpDebugOutput::Parser ![tests](https://github.com/dbackowski/http_debug_output-parser/actions/workflows/rspec.yml/badge.svg) ![codecheck](https://github.com/dbackowski/http_debug_output-parser/actions/workflows/rubocop.yml/badge.svg)\n\n`HttpDebugOutput::Parser` is a Ruby gem designed to parse and transform the debug output from Ruby's Net::HTTP library into a structured, easy-to-read hash. This gem is particularly useful for developers who need to analyze HTTP requests and responses in a more human-readable and programmatically accessible format.\n\n### Features\n\n* Parses Debug Output: Converts raw Net::HTTP debug output into a structured Hash.\n\n* Request and Response Details: Extracts and organizes details such as HTTP method, path, headers, status codes, and payloads.\n\n* Easy Integration: Simple to integrate into existing Ruby projects, making it easier to debug and log HTTP interactions.\n\n\n### Example\n\nGiven the raw debug output from Net::HTTP, the gem transforms it into a structured hash:\n\n```ruby\n{\n  :request =\u003e {\n    :method =\u003e \"GET\",\n    :path =\u003e \"/astros.json\",\n    :protocol =\u003e \"HTTP/1.1\",\n    :headers =\u003e [\n      \"Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\",\n      \"Accept: */*\",\n      \"User-Agent: Ruby\",\n      \"Connection: close\",\n      \"Host: api.open-notify.org\"\n    ],\n    :payload =\u003e nil\n  },\n  :response =\u003e {\n    :protocol =\u003e \"HTTP/1.1\",\n    :status =\u003e \"200\",\n    :message =\u003e \"OK\",\n    :headers =\u003e [\n      \"Server: nginx/1.10.3\",\n      \"Date: Thu, 13 Feb 2025 18:58:02 GMT\",\n      \"Content-Type: application/json\",\n      \"Content-Length: 587\",\n      \"Connection: close\",\n      \"access-control-allow-origin: *\"\n    ],\n    :payload =\u003e {\n      \"people\" =\u003e [\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Oleg Kononenko\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Nikolai Chub\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Tracy Caldwell Dyson\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Matthew Dominick\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Michael Barratt\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Jeanette Epps\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Alexander Grebenkin\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Butch Wilmore\" },\n        { \"craft\" =\u003e \"ISS\", \"name\" =\u003e \"Sunita Williams\" },\n        { \"craft\" =\u003e \"Tiangong\", \"name\" =\u003e \"Li Guangsu\" },\n        { \"craft\" =\u003e \"Tiangong\", \"name\" =\u003e \"Li Cong\" },\n        { \"craft\" =\u003e \"Tiangong\", \"name\" =\u003e \"Ye Guangfu\" }\n      ],\n      \"number\" =\u003e 12,\n      \"message\"=\u003e\"success\"\n    }\n  }\n}\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'http_debug_output-parser'\n```\n\nAnd then execute:\n\n```bash\n$ bundle install\n```\n\nOr install it yourself as:\n\n```bash\ngem install http_debug_output-parser\n```\n\n## Usage\n\n```ruby\nrequire 'http_debug_output-parser'\n\ndebug_output = \u003c\u003c~DEBUG\nopening connection to api.open-notify.org:80...\nopened\n\u003c- \"GET /astros.json HTTP/1.1\\r\\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\\r\\nAccept: */*\\r\\nUser-Agent: Ruby\\r\\nConnection: close\\r\\nHost: api.open-notify.org\\r\\n\\r\\n\"\n-\u003e \"HTTP/1.1 200 OK\\r\\n\"\n-\u003e \"Server: nginx/1.10.3\\r\\n\"\n-\u003e \"Date: Thu, 13 Feb 2025 18:58:02 GMT\\r\\n\"\n-\u003e \"Content-Type: application/json\\r\\n\"\n-\u003e \"Content-Length: 587\\r\\n\"\n-\u003e \"Connection: close\\r\\n\"\n-\u003e \"access-control-allow-origin: *\\r\\n\"\n-\u003e \"\\r\\n\"\nreading 587 bytes...\n-\u003e \"{\\\"people\\\": [{\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Oleg Kononenko\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Nikolai Chub\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Tracy Caldwell Dyson\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Matthew Dominick\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Michael Barratt\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Jeanette Epps\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Alexander Grebenkin\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Butch Wilmore\\\"}, {\\\"craft\\\": \\\"ISS\\\", \\\"name\\\": \\\"Sunita Williams\\\"}, {\\\"craft\\\": \\\"Tiangong\\\", \\\"name\\\": \\\"Li Guangsu\\\"}, {\\\"craft\\\": \\\"Tiangong\\\", \\\"name\\\": \\\"Li Cong\\\"}, {\\\"craft\\\": \\\"Tiangong\\\", \\\"name\\\": \\\"Ye Guangfu\\\"}], \\\"number\\\": 12, \\\"message\\\": \\\"success\\\"}\"\nread 587 bytes\nConn close\nDEBUG\n\npp HttpDebugOutput::Parser.new(debug_output).call\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/dbackowski/http_debug_output-parser.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbackowski%2Fhttp_debug_output-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbackowski%2Fhttp_debug_output-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbackowski%2Fhttp_debug_output-parser/lists"}