{"id":29826958,"url":"https://github.com/usagi-flow/iron-test","last_synced_at":"2025-10-13T04:14:27.471Z","repository":{"id":114096769,"uuid":"262536486","full_name":"usagi-flow/iron-test","owner":"usagi-flow","description":"A test helper crate for Iron.","archived":false,"fork":false,"pushed_at":"2021-02-03T19:17:28.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T05:55:21.878Z","etag":null,"topics":["http","iron","rust","rust-crate","testing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usagi-flow.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":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-09T09:32:47.000Z","updated_at":"2021-02-03T19:17:30.000Z","dependencies_parsed_at":"2023-06-12T20:30:36.803Z","dependency_job_id":null,"html_url":"https://github.com/usagi-flow/iron-test","commit_stats":null,"previous_names":["usagi-flow/iron-test","etienne-k/iron-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usagi-flow/iron-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi-flow%2Firon-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi-flow%2Firon-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi-flow%2Firon-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi-flow%2Firon-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usagi-flow","download_url":"https://codeload.github.com/usagi-flow/iron-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usagi-flow%2Firon-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013693,"owners_count":26085390,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["http","iron","rust","rust-crate","testing"],"created_at":"2025-07-29T05:35:57.114Z","updated_at":"2025-10-13T04:14:27.456Z","avatar_url":"https://github.com/usagi-flow.png","language":"Rust","readme":"iron-test\n=========\n\n_A test helper crate for [Iron](https://github.com/iron/iron)._\n\nThis crate provides the ``request_get()`` and ``request_post()`` functions to easily test Iron handlers without firing up a local HTTP server.\n\nInvoke the functions by passing an Iron chain (``iron::middleware::Chain``) and - in the case of a POST request - a ``\u0026str`` containing the body payload.\n\n```\n\t#[test]\n\tfn test_hello_get()\n\t{\n\t\tlet iron = IronServer::new().create_iron();\n\t\tlet response = request_get(\u0026iron, \"/hello\").unwrap();\n\n\t\tassert!(response.status.unwrap().is_client_error());\n\t}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusagi-flow%2Firon-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusagi-flow%2Firon-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusagi-flow%2Firon-test/lists"}