{"id":25826744,"url":"https://github.com/watchdg/rust-http-protocol","last_synced_at":"2025-08-25T12:04:47.047Z","repository":{"id":62440295,"uuid":"360540751","full_name":"WatchDG/rust-http-protocol","owner":"WatchDG","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-17T05:20:50.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T06:10:31.024Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WatchDG.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}},"created_at":"2021-04-22T14:05:42.000Z","updated_at":"2021-07-17T05:20:53.000Z","dependencies_parsed_at":"2022-11-01T21:50:09.378Z","dependency_job_id":null,"html_url":"https://github.com/WatchDG/rust-http-protocol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-http-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-http-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-http-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WatchDG%2Frust-http-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WatchDG","download_url":"https://codeload.github.com/WatchDG/rust-http-protocol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241176617,"owners_count":19922732,"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":"2025-02-28T15:44:46.635Z","updated_at":"2025-02-28T15:44:47.211Z","avatar_url":"https://github.com/WatchDG.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-protocol\n\n## Headers\n\n```rust\nextern crate http_protocol;\n\nuse http_protocol::header::Header;\nuse http_protocol::Headers;\n\nfn main() {\n    let mut headers = Headers::new();\n    headers.insert(Header::Connection, \u0026b\"close\"[..]);\n    println!(\"{:?}\", headers);\n}\n```\n\n## Response\n\n```rust\nextern crate http_protocol;\n\nuse http_protocol::header::Header;\nuse http_protocol::{Body, Headers, HttpVersion, Response, StatusCode};\n\nfn main() {\n    let mut headers = Headers::new();\n    headers.insert(Header::Connection, \u0026b\"close\"[..]);\n\n    let mut response_builder = Response::builder();\n\n    response_builder\n        .http_version(HttpVersion::Http11)\n        .status_code(StatusCode::S200)\n        .headers(headers)\n        .body(Body::empty());\n\n    let response = response_builder.build().unwrap();\n\n    println!(\"{:?}\", response);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatchdg%2Frust-http-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatchdg%2Frust-http-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatchdg%2Frust-http-protocol/lists"}