{"id":17356663,"url":"https://github.com/gsquire/compress","last_synced_at":"2025-09-11T13:12:42.737Z","repository":{"id":32006109,"uuid":"35577082","full_name":"gsquire/compress","owner":"gsquire","description":"Compression modifier for the Iron framework","archived":false,"fork":false,"pushed_at":"2017-02-04T01:02:44.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T00:08:24.807Z","etag":null,"topics":["iron","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/iron_compress","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/gsquire.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":"2015-05-13T22:22:20.000Z","updated_at":"2018-12-20T20:29:49.000Z","dependencies_parsed_at":"2022-09-22T23:00:14.010Z","dependency_job_id":null,"html_url":"https://github.com/gsquire/compress","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/gsquire%2Fcompress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Fcompress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Fcompress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Fcompress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsquire","download_url":"https://codeload.github.com/gsquire/compress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981267,"owners_count":21193147,"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":["iron","rust"],"created_at":"2024-10-15T18:57:55.435Z","updated_at":"2025-04-15T00:08:35.752Z","avatar_url":"https://github.com/gsquire.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compress\n[![Build Status](https://travis-ci.org/gsquire/compress.svg?branch=master)](https://travis-ci.org/gsquire/compress)\n\nThis small library exposes two types that know how to encode bytes based on the GZIP and deflate\nalgorithms. The types implement the modifier trait so they can be used in an Iron Response.\n\n### Documentation\nFind it [here](https://docs.rs/iron_compress)\n\n### Example\n```rust\nextern crate iron;\nextern crate iron_compress;\n\nuse iron::prelude::*;\nuse iron::status;\n\nuse iron_compress::GzipWriter;\n\nfn main() {\n    fn hello_world(_: \u0026mut Request) -\u003e IronResult\u003cResponse\u003e {\n        Ok(Response::with((status::Ok, GzipWriter(b\"Some compressed response\"))))\n    }\n\n    Iron::new(hello_world).http(\"localhost:3000\").unwrap();\n}\n```\n\n### License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsquire%2Fcompress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsquire%2Fcompress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsquire%2Fcompress/lists"}