{"id":15373065,"url":"https://github.com/vi/proptest-http","last_synced_at":"2025-08-14T19:27:47.601Z","repository":{"id":57657702,"uuid":"191835525","full_name":"vi/proptest-http","owner":"vi","description":"`impl proptest::Arbitrary for http::{Request,Response,Uri}` - random http-related objects generator for Rust","archived":false,"fork":false,"pushed_at":"2020-03-26T17:07:40.000Z","size":15,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T14:13:32.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vi.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}},"created_at":"2019-06-13T21:27:39.000Z","updated_at":"2020-05-10T21:42:17.000Z","dependencies_parsed_at":"2022-09-07T06:23:07.746Z","dependency_job_id":null,"html_url":"https://github.com/vi/proptest-http","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fproptest-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fproptest-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fproptest-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fproptest-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/proptest-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249085429,"owners_count":21210267,"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":[],"created_at":"2024-10-01T13:54:12.384Z","updated_at":"2025-04-15T14:13:37.705Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proptest-http\n\n`impl proptest::Arbitrary for http::{Request,Response,Uri};`\n\nThis crate contains the code to generate random-ish `http` objects:\nurls, requests, headers, responses\n\nIt is rather simple and straightforward:\nmost things are just chosen from a static list\n\nTo be useful for your project, you may want to fork it and\nmodify the arrays.\n\nExample URL simplification sequence:\n\n```norust\n* `https://6:%5B%5D%3F%2F%3C%7E%23%6D%21%40%24%25%5E%26%2A%28%29%2B%3D%7D%7C%3A%22%3B%27%2C%3E%7B%20@example.com:8080/foo/bar/?q=http%3A%2F%2F%5B%3A%3A1%5D%3A123%2F%3Fqw%3D3%26q%3D1%231v\u0026`\n* `http://6:%5B%5D%3F%2F%3C%7E%23%6D%21%40%24%25%5E%26%2A%28%29%2B%3D%7D%7C%3A%22%3B%27%2C%3E%7B%20@example.com:8080/foo/bar/?q=http%3A%2F%2F%5B%3A%3A1%5D%3A123%2F%3Fqw%3D3%26q%3D1%231v\u0026`\n* `http://%20:%20@example.com:8080/foo/bar/?q=http%3A%2F%2F%5B%3A%3A1%5D%3A123%2F%3Fqw%3D3%26q%3D1%231v\u0026`\n* `http://%20:%20@example.com:8080/foo?q=http%3A%2F%2F%5B%3A%3A1%5D%3A123%2F%3Fqw%3D3%26q%3D1%231v\u0026`\n* `http://%20:%20@example.com:8080/foo?q=w`\n* `/foo?q=w`\n* `/?q=w `\n* `/?`\n```\n\nExample of a request (I know that header names and values are not congruent):\n\n```norust\nRequest {\n    method: DELETE,\n    uri: /,\n    version: HTTP/1.1,\n    headers: {\n        \"dnt\": \"keep-alive\",\n        \"host\": \"999999999999999999999999999999999999999999999999999999\",\n        \"date\": \"websocket\",\n        \"authorization\": \"close\",\n        \"upgrade\": \"%\",\n        \"connection\": \"deflate\",\n        \"content-type\": \"Thu, 20 Jun 2019 21:06:20 GMT\",\n        \"cache-control\": \"\\r\\n\",\n        \"expires\": \"\t\",\n        \"user-agent\": \"localhost\",\n        \"content-length\": \"%\",\n        \"server\": \"max-age=604800\",\n        \"accept\": \"_xsrf=2|8bea5404|5ef47a59a0516e67bbd5f86849e28a1c|1553532280\",\n        \"accept-encoding\": \"text/html\",\n        \"accept-language\": \"websocket\",\n    },\n    body: (),\n}\n```\n\nLicense: MIT/Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fproptest-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Fproptest-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fproptest-http/lists"}