Crate catalyzer
Expand description
Catalyzer is a web framework for Rust, made to be simple and easy to use.
§Example
use catalyzer::*;
#[main]
fn main() {
App![index]
.bind("0.0.0.0:3000")?
.launch()
}
#[get("/")]
fn index() {
"Hello, world!"
}Modules§
- internals
- !!! INTERNALS !!! DO NOT USE DIRECTLY!!!
- req
- A collection of request types and utilities.
- res
- A collection of response types and utilities.
Macros§
- App
- A shortcut for creating an
Appinstance. - catalyze
- Allows for simplistic creation of web applications.
Structs§
- App
- The main application type.
- Catalyzer
Error - An error type for Catalyzer operations.
Type Aliases§
- Result
- A specialized
Resulttype for Catalyzer operations.
Attribute Macros§
- delete
- A route handler for the
DELETEmethod. - get
- A route handler for the
GETmethod. - head
- A route handler for the
HEADmethod. - main
- Marks a function as the main entry point for the application.
- options
- A route handler for the
OPTIONSmethod. - patch
- A route handler for the
PATCHmethod. - post
- A route handler for the
POSTmethod. - put
- A route handler for the
PUTmethod. - trace
- A route handler for the
TRACEmethod.