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

Function index

https-tls/openssl/src/main.rs:13–18  ·  view source on GitHub ↗

simple handle

(req: HttpRequest)

Source from the content-addressed store, hash-verified

11
12/// simple handle
13async fn index(req: HttpRequest) -> Result<HttpResponse, Error> {
14 println!("{req:?}");
15 Ok(HttpResponse::Ok()
16 .content_type("text/plain")
17 .body("Hello HTTPS World!"))
18}
19
20#[actix_web::main]
21async fn main() -> io::Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected