Crate ohkami

Crate ohkami 

Source
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-flexibletokio, smol, nio, glommio, monoio, compio and worker (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.
ssesse
testingDebug-assertions enabled and __rt__
Ohkami testing tools
util
wsws

Structs§

Config
Configuration for Ohkami server.
Ohkami__rt__
Ohkami - a smart wolf who serves your web app
Request
HTTP Request
Response
HTTP Response

Enums§

Method
Status

Traits§

FromRequest
“Retirieved from a Request”.
IntoResponse
A trait implemented to be a returned value of a handler
Route__rt__
Core trait for Ohkami’s routing definition.

Derive Macros§

FromRequest
Deriving FromRequest impl for a struct composed of FromRequest types