Skip to main content

post_json

Function post_json 

Source
pub fn post_json<F, Fut, Res, T>(handler: F) -> MethodHandler
where F: Fn(T) -> Fut + Send + Sync + 'static, Fut: Future<Output = Res> + Send + 'static, Res: IntoResponse + 'static, T: DeserializeOwned + Send + 'static,
Expand description

创建 POST JSON 路由