rustfulRust 的 RESTful 框架
rustful 是 Rust 编程语言的一个 RESTful 框架,主要目的是创建一个简单、轻量级的 HTTP 服务应用基础。基于无状态结构,根据路径和 HTTP 方法映射到响应处理器。
示例代码:
//Include rustful_macros during syntax phase to be able to use the macros #![feature(phase)] #[phase(plugin)] extern crate rustful_macros; extern crate rustful; extern crate http; use rustful::{Server, Request, Response}; use http::method::Get; ///Our handler function fn handler(request: Request, response: &mut Response) { //Send something nice to the user try_send!(response, "Hello, user! It looks like this server works fine." while "sending hello"); } fn main() { let server = Server::new(8080, router!{"/" => Get: handler}); //Start the server. All code beyond this point is unreachable server.run(); }
评论
rustfulRust 的 RESTful 框架
rustful是Rust编程语言的一个RESTful框架,主要目的是创建一个简单、轻量级的HTTP服务应用基础。基于无状态结构,根据路径和HTTP方法映射到响应处理器。示例代码://Include r
rustfulRust 的 RESTful 框架
0
restmvcNode.js 的 RESTful 框架
restmvc是一款简单,轻量级的框架,帮助用户使用Node.js,Express,Mongoose和MongoDB编写Restfulweb服务。
restmvcNode.js 的 RESTful 框架
0
KauriJava的RESTful框架
Kauriis是一个采用Java开发的RESTful应用开发框架,基于Restlet、jQuery、Maven、Spring等框架开发。
KauriJava的RESTful框架
0