{"id":20703759,"url":"https://github.com/burdockcascade/teapot","last_synced_at":"2025-05-10T20:30:39.393Z","repository":{"id":233995218,"uuid":"788145126","full_name":"burdockcascade/teapot","owner":"burdockcascade","description":"A simple and modern web framework for rust","archived":true,"fork":false,"pushed_at":"2024-04-18T00:03:10.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T04:32:45.889Z","etag":null,"topics":["http","hyper","rest-api","rust","web-framework"],"latest_commit_sha":null,"homepage":"","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/burdockcascade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","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}},"created_at":"2024-04-17T21:29:00.000Z","updated_at":"2024-10-05T20:58:47.000Z","dependencies_parsed_at":"2024-04-17T22:44:19.322Z","dependency_job_id":null,"html_url":"https://github.com/burdockcascade/teapot","commit_stats":null,"previous_names":["burdockcascade/teapot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burdockcascade%2Fteapot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burdockcascade%2Fteapot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burdockcascade%2Fteapot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burdockcascade%2Fteapot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/burdockcascade","download_url":"https://codeload.github.com/burdockcascade/teapot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253480212,"owners_count":21915245,"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":["http","hyper","rest-api","rust","web-framework"],"created_at":"2024-11-17T01:09:28.064Z","updated_at":"2025-05-10T20:30:39.038Z","avatar_url":"https://github.com/burdockcascade.png","language":"Rust","readme":"# TEAPOT\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE-MIT)\n[![GHA Build Status](https://github.com/burdockcascade/teapot/workflows/CI/badge.svg)](https://github.com/burdockcascade/teapot/actions?query=workflow%3ACI)\n\n## Status\nThis project is in early development and is not yet ready for production use.\n\n## Example\n```rust\nfn main() {\n    \n    info!(\"Starting teapot server example...\");\n    \n    let my_teapot = Arc::new(Mutex::new(MyHandler { counter: 0 }));\n    \n    HttpServer::builder()\n        .address(\"127.0.0.1\")\n        .port(80)\n        .route(RouteBuilder::http()\n            .get(\"/teapot\")\n            .handler(my_teapot.clone())\n            .build()\n            .expect(\"valid route\"))\n        .start();\n\n}\n\nstruct MyHandler {\n    counter: u16\n}\n\nimpl RouteHandler for MyHandler {\n    fn on_request(\u0026mut self, _request: \u0026HttpServerRequest) -\u003e HttpServerResponse {\n        \n        self.counter += 1;\n        let message = format!(\"Serving cup number {}\", self.counter);\n        \n        HttpServerResponse::builder()\n            .status(StatusCode::OK)\n            .header(\"Content-Type\", \"text/plain\")\n            .body(Body::text(message))\n            .build()\n    }\n}\n```\n\n## License\nLicensed under the MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburdockcascade%2Fteapot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburdockcascade%2Fteapot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburdockcascade%2Fteapot/lists"}