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

Function index

websockets/echo-actorless/src/main.rs:15–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13mod handler;
14
15async fn index() -> impl Responder {
16 NamedFile::open("./static/index.html").unwrap()
17}
18
19/// Handshake and start WebSocket handler with heartbeats.
20async fn echo_heartbeat_ws(req: HttpRequest, stream: web::Payload) -> Result<HttpResponse, Error> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected