MCPcopy Create free account
hub / github.com/actix/examples / handle_post_1

Function handle_post_1

forms/form/src/main.rs:45–49  ·  view source on GitHub ↗

Simple handle POST request

(params: web::Form<MyParams>)

Source from the content-addressed store, hash-verified

43
44/// Simple handle POST request
45async fn handle_post_1(params: web::Form<MyParams>) -> Result<HttpResponse> {
46 Ok(HttpResponse::Ok()
47 .content_type("text/plain")
48 .body(format!("Your name is {}", params.name)))
49}
50
51/// State and POST Params
52async fn handle_post_2(

Callers 1

handle_post_1_unit_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected