{"id":57470,"library":"http-body","title":"HTTP Body","description":"Trait representing an asynchronous, streaming HTTP request or response body.","status":"active","version":"1.0.1","language":"rust","source_language":null,"source_url":"https://github.com/hyperium/http-body","tags":["http","body","streaming","async"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nhttp-body = \"1.0.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add http-body","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Body","correct":"use http_body::Body;"}],"quickstart":{"code":"use http_body::Body;\nuse bytes::Bytes;\n\nstruct MyBody;\nimpl Body for MyBody {\n    type Data = Bytes;\n    type Error = std::io::Error;\n    fn poll_data(self: std::pin::Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> std::task::Poll<Option<Result<Self::Data, Self::Error>>> {\n        std::task::Poll::Ready(None)\n    }\n    fn poll_trailers(self: std::pin::Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> std::task::Poll<Result<Option<http::HeaderMap>, Self::Error>> {\n        std::task::Poll::Ready(Ok(None))\n    }\n}","lang":"rust","description":"Implement the Body trait for a custom HTTP body type."},"warnings":[],"env_vars":null,"search_vec":"'async':16 'asynchron':6 'bodi':2,12,14 'http':1,8,13 'repres':4 'request':9 'respons':11 'stream':7,15 'trait':3","created_at":"2026-06-16T15:43:30.952651+00:00","updated_at":"2026-06-16T15:43:30.952651+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/hyperium/http-body","github":"https://github.com/hyperium/http-body","docs":"https://docs.rs/http-body/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}