{"id":20697025,"url":"https://github.com/nitindahiya-dev/get-request","last_synced_at":"2026-06-01T05:31:39.608Z","repository":{"id":249422844,"uuid":"823024064","full_name":"nitindahiya-dev/get-request","owner":"nitindahiya-dev","description":"Rust program that demonstrates making an HTTP GET request","archived":false,"fork":false,"pushed_at":"2024-07-02T09:32:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-06T09:07:51.083Z","etag":null,"topics":["get-request","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/nitindahiya-dev.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-07-02T09:28:07.000Z","updated_at":"2024-07-02T09:33:26.000Z","dependencies_parsed_at":"2024-07-20T18:08:14.414Z","dependency_job_id":null,"html_url":"https://github.com/nitindahiya-dev/get-request","commit_stats":null,"previous_names":["nitindahiya-dev/get-request"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nitindahiya-dev/get-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitindahiya-dev%2Fget-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitindahiya-dev%2Fget-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitindahiya-dev%2Fget-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitindahiya-dev%2Fget-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitindahiya-dev","download_url":"https://codeload.github.com/nitindahiya-dev/get-request/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitindahiya-dev%2Fget-request/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33762215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":["get-request","rust"],"created_at":"2024-11-17T00:16:24.620Z","updated_at":"2026-06-01T05:31:39.586Z","avatar_url":"https://github.com/nitindahiya-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2\u003e# Simple HTTP Client in Rust with Error Handling\u003c/h2\u003e\n\u003cp\u003eThis repository contains a simple Rust program that demonstrates making an HTTP GET request using the `reqwest` crate, and handling potential errors using the `error_chain` crate.\u003c/p\u003e\n\n\u003cp\u003e## Features\u003c/p\u003e\n\u003cli\u003e Makes a GET request to `http://httpbin.org/get`.\u003c/li\u003e\n\u003cli\u003e Handles HTTP request errors and IO errors gracefully.\u003c/li\u003e\n\u003cli\u003e Prints the status, headers, and body of the HTTP response.\u003c/li\u003e\n\u003cbr\u003e\n\n\u003cp\u003e## Prerequisites\u003c/p\u003e\n\u003cli\u003e [Rust](https://www.rust-lang.org/tools/install) (1.45.0 or later)\u003c/li\u003e\n\u003cbr\u003e\n\n\u003cp\u003e## Usage\u003c/p\u003e\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/your-username/rust-http-client.git\n    cd rust-http-client\n    ```\n\n2. Build the project:\n\n    ```sh\n    cargo build\n    ```\n\n3. Run the project:\n\n    ```sh\n    cargo run\n    ```\n\n\u003cp\u003e## Code Explanation\u003c/p\u003e\n\n\u003cp\u003eThe code uses the `error_chain` crate to manage errors and the `reqwest` crate to perform HTTP requests.\u003c/p\u003e\n\u003cp\u003e### Dependencies\u003c/p\u003e\n\n\u003cp\u003eAdd the following dependencies to your `Cargo.toml` file:\u003c/p\u003e\n\n```toml\n[dependencies]\nreqwest = { version = \"0.11\", features = [\"blocking\"] }\nerror-chain = \"0.12.4\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitindahiya-dev%2Fget-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitindahiya-dev%2Fget-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitindahiya-dev%2Fget-request/lists"}