{"id":21815282,"url":"https://github.com/thesurlydev/httpp","last_synced_at":"2025-03-21T09:45:50.136Z","repository":{"id":264689428,"uuid":"874959079","full_name":"thesurlydev/httpp","owner":"thesurlydev","description":"A minimal representation of HTTP requests and a reference CLI tool.","archived":false,"fork":false,"pushed_at":"2024-12-04T18:32:45.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T06:24:57.831Z","etag":null,"topics":["curl","http","http-client","json-schema","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/thesurlydev.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":"2024-10-18T19:31:17.000Z","updated_at":"2024-12-04T18:32:42.000Z","dependencies_parsed_at":"2024-11-25T19:42:41.614Z","dependency_job_id":"253629c0-7eeb-49d9-8b28-3cf7c89f6958","html_url":"https://github.com/thesurlydev/httpp","commit_stats":null,"previous_names":["thesurlydev/httpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesurlydev%2Fhttpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesurlydev%2Fhttpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesurlydev%2Fhttpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesurlydev%2Fhttpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesurlydev","download_url":"https://codeload.github.com/thesurlydev/httpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776271,"owners_count":20508503,"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":["curl","http","http-client","json-schema","rust"],"created_at":"2024-11-27T15:17:16.632Z","updated_at":"2025-03-21T09:45:50.113Z","avatar_url":"https://github.com/thesurlydev.png","language":"Rust","readme":"# httpp\n\n`httpp` is:\n\n1. A minimal structured file format to represent HTTP requests. See the [schema](schema.json) for details.\n2. A reference CLI tool which can execute requests defined in the `httpp` format.\n\n## Why\n\nHTTP is a simple protocol, but there isn't a simple way to represent HTTP requests in a structured format.\n\nExisting formats like HAR are too verbose and complex for simple use cases.\n\n`httpp` aims to be a simple and minimal format to represent HTTP requests that aren't tied to a specific tool like\nPostman or curl.\n\n## Usage\n\n```\nUsage: httpp [OPTIONS]\n\nOptions:\n  -f, --file \u003cFILE\u003e             Read the request from a file\n      --curl                    Convert the request to a curl command\n  -s, --status                  Output the response status code\n  -H, --headers                 Output the response headers\n  -b, --body                    Output the response body\n  -o, --output \u003cOUTPUT_FORMAT\u003e  Specify output format (json or text) [default: text]\n  -h, --help                    Print help\n  -V, --version                 Print version\n```\n\nSome examples...\n\nYou can pass a `httpp` file to the CLI with the `-f` flag:\n\n```\nhttpp -f get-request.json\n```\n\nor you can pipe the `httpp` file to the CLI:\n\n```\ncat get-request.json | httpp\n```\n\nIf you're just interested in the response status code, you can use the `-s` flag:\n\n```\nhttpp -f get-request.json -s\n```\n\nTo output everything in the response (status, headers, and body):\n\n```\nhttpp -f get-request.json -sHb\n```\n\nFinally, to convert a `httpp` request to a curl command, you can use the `--curl` flag:\n\n```\nhttpp -f get-request.json --curl\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesurlydev%2Fhttpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesurlydev%2Fhttpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesurlydev%2Fhttpp/lists"}