This handler uses json extractor
(item: web::Json<MyObj>)
| 9 | |
| 10 | /// This handler uses json extractor |
| 11 | async fn index(item: web::Json<MyObj>) -> HttpResponse { |
| 12 | println!("model: {:?}", item); |
| 13 | HttpResponse::Ok().json(item.0) // <- send response |
| 14 | } |
| 15 | |
| 16 | /// This handler uses json extractor with limit |
| 17 | async fn extract_item(item: web::Json<MyObj>, req: HttpRequest) -> HttpResponse { |
nothing calls this directly
no outgoing calls
no test coverage detected