Rocket (web framework)



Website: rocket.rs


Rocket is a web framework written in Rust. It supports HTTP Requests, Web Sockets JSON, Templating and more. Its design was inspired by Rails, Flask, Bottle, and Yesod. It licensed under MIT License or Apache License. To create a web server with Rocket, the user will define an application, then use the “mount” function to attach “routes” to it. Each “route” is a rust function with a macro attched to it. The function will define code that should response to an HTTP request. The macro that is written as part of the function decleration will define which HTTP Method (such as GET, POST, PUT, etc.) it should be handle, as well as a pattern describing the URL it should be relevant to.