Expand description
Ohkami
Ohkami - [狼] wolf in Japanese - is a performant, declarative, and runtime-flexible web framework for Rust.- macro-less and type-safe APIs for declarative, ergonomic code
- runtime-flexible :
tokio,smol,nio,glommio,monoio,compioandworker(Cloudflare Workers),lambda(AWS Lambda) - good performance, no-network testing, well-structured middlewares, Server-Sent Events, WebSocket, highly integrated OpenAPI document generation, …
See GitHub repo for details!
Re-exports§
pub use fang::Fang;pub use fang::FangAction;pub use fang::FangProc;pub use fang::handler;pub use claw::Cookie;pub use claw::Json;pub use claw::Path;pub use claw::Query;
Modules§
- claw
- Claws - handler parts for desclarative request/response handling
- fang
- header
- prelude
- serde
- Somthing almost serde + serde_json.
- sse
sse - testing
Debug-assertions enabled and __rt__ - Ohkami testing tools
- util
- ws
ws
Structs§
- Config
- Configuration for Ohkami server.
- Ohkami
__rt__ - Ohkami - a smart wolf who serves your web app
- Request
- HTTP Request
- Response
- HTTP Response
Enums§
Traits§
- From
Request - “Retirieved from a
Request”. - Into
Response - A trait implemented to be a returned value of a handler
- Route
__rt__ - Core trait for Ohkami’s routing definition.
Derive Macros§
- From
Request - Deriving
FromRequestimpl for a struct composed ofFromRequesttypes